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
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
What is #pragma statements?
What does void main () mean?
What are structures and unions? State differencves between them.
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
Calculate 1*2*3*____*n using recursive function??
i have a written test for microland please give me test pattern
What is the modulus operator?
How can variables be characterized?
Is it possible to execute code even after the program exits the main() function?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
What is include directive in c?
What is the deal on sprintf_s return value?
Why is c called "mother" language?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)