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

What does != Mean in c?

594


Do you know what are bitwise shift operators in c programming?

589


How can I invoke another program or command and trap its output?

621


What are the different types of data structures in c?

610


What is the general form of function in c?

615






Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

817


application attempts to perform an operation?

1497


can anyone suggest some site name..where i can get some good data structure puzzles???

1647


What are c header files?

584


what is event driven software and what is procedural driven software?

2019


What is C language ?

1533


Tell me what is null pointer in c?

617


Explain pointers in c programming?

639


what is the significance of static storage class specifier?

1667


What is a macro?

659