WRITE A PROGRAM TO FIND A REVERSE OF TWO NO

Answer Posted / vaibhav

#include <stdio.h>
#include<conio.h>
void main()
{
int n,t;
printf("\n enter the 2 digit no.");
scanf("%d",&n);
while(n%10>0)
{
t=n%10;
n=n/10;
printf("\n reverse no. is%d",t);
}
getch();
}

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I do serial ("comm") port I/O?

677


How can a string be converted to a number?

504


In C language, a variable name cannot contain?

729


What is function pointer c?

579


Which built-in library function can be used to match a patter from the string?

731






Wt are the Buses in C Language

2740


Explain function?

652


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2295


How do I use strcmp?

626


What is zero based addressing?

698


Explain what is the benefit of using #define to declare a constant?

599


Why is C language being considered a middle level language?

639


Write a program of prime number using recursion.

607


What are the different types of linkage exist in c?

599


Why c is called a middle level language?

628