#include<stdio.h>
int main()
{
int dummy,n,rev=0,x;
printf("Enter a number\n");
scanf("%d",&n);
dummy=n;
while(n>0)
{
x=n%10;
rev=rev*10+x;
n=n/10;
}
printf("The reverse of %d is %d\n",dummy,rev);
return 0;
}
#include<stdio.h> int main() { char c; printf("Enter a character to know whether it is vowel or not\n"); scanf("...
No comments:
Post a Comment