HOW TO FIND OUT THE RREVERS OF A GIVEN DIGIT NUMBER IF IT
IS INPUT THROUGH THE KEYBORD BY USING C LANGUAGE
Answer Posted / audumbar
#include<stdio.h>
main()
{
int n;
printf("\n enter the number");
scanf("%d",&n);
while(n!=0)
{
int a=n%10;
printf("%d",a);
n=n/10;
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain how can I convert a number to a string?
What are the differences between Structures and Arrays?
What tq means in chat?
Is fortran still used in 2018?
What does nil mean in c?
What is the purpose of main() function?
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above
What are the features of c language?
What is sizeof in c?
Can you return null in c?
Explain how do you declare an array that will hold more than 64kb of data?
How can I read/write structures from/to data files?
Difference between macros and inline functions? Can a function be forced as inline?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What are pointers really good for, anyway?