Skip to content

Instantly share code, notes, and snippets.

@Rajssss
Last active June 17, 2019 14:36
Show Gist options
  • Save Rajssss/c081dcdc578d97d2a067ca5b4fe4be95 to your computer and use it in GitHub Desktop.
Save Rajssss/c081dcdc578d97d2a067ca5b4fe4be95 to your computer and use it in GitHub Desktop.
#include<stdio.h>
int main()
{
int x, y;
printf("Enter 5 digit No. =>");
scanf("%d", &x);
printf("Reverse of the No. %d is =>", x);
while(x>0)
{
y = x % 10;
printf("%d", y);
x /= 10;
}
return 0;
}
#include<stdio.h>
int main()
{
char Alpha;
printf("Enter an Aplphabate =>");
scanf("%c",&Alpha);
if (Alpha == 'a' || Alpha == 'e' || Alpha == 'i' || Alpha == 'o' || Alpha == 'u' ||
Alpha == 'A' || Alpha == 'E' || Alpha == 'I' || Alpha == 'O' || Alpha == 'U')
{
printf("%c is Vowel!\n", Alpha);
}
else
{
printf("%c is Consonent!\n", Alpha);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment