to find out the reverse digit of a given number
Answer Posted / vignesh1988i
#include<stdio.h>
#include<conio.h>
void main()
{
int n,a;
printf("enter the number to be reversed :");
scanf("%d",&n);
printf("the reversed number is :");
for(int i=0;n>0;i++)
{
a=n%10;
n=n/10;
printf("%d",a);
}
getch();
}
| Is This Answer Correct ? | 74 Yes | 37 No |
Post New Answer View All Answers
Which built-in library function can be used to match a patter from the string?
What is a stream in c programming?
How can you allocate arrays or structures bigger than 64K?
What are the types of bitwise operator?
Differentiate between the expression “++a” and “a++”?
When should the volatile modifier be used?
Can we initialize extern variable in c?
What is modifier & how many types of modifiers available in c?
What are the types of data structures in c?
What are the three constants used in c?
Can an array be an Ivalue?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
How can I find the modification date of a file?
What is call by value in c?
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.