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


Please Help Members By Posting Answers For Below Questions

how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

1212


What is #include cctype?

580


Explain what is meant by 'bit masking'?

644


What is the size of structure pointer in c?

614


Explain modulus operator.

597






Explain null pointer.

622


What is a static variable in c?

667


What are the advantage of c language?

552


What is the best style for code layout in c?

632


Explain the red-black trees?

607


What is the scope of static variables in c language?

628


Write a program to print all permutations of a given string.

644


What are pointers really good for, anyway?

614


How can I get the current date or time of day in a c program?

652


What is the general form of function in c?

610