to find out the reverse digit of a given number

Answer Posted / vaibhav

#include<stdio.h>
#include<conio.h>
void main()
{
int no, t;
clrscr();
printf("\nenter the no.");
scanf("%d",&no);
while(no!=0)
{
t=no%10;
no=no/10;
printf("%d",t);
}
getch();
}

Is This Answer Correct ?    23 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi any body pls give me company name interview conduct "c" language only

1659


Where we use clrscr in c?

693


When should you use a type cast?

583


How do you construct an increment statement or decrement statement in C?

731


What is the use of getchar() function?

622






What is dynamic memory allocation?

800


What are the features of c language?

616


What is the difference between text and binary i/o?

586


What is pass by value in c?

591


Why is c called c not d or e?

600


Can true be a variable name in c?

553


What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

1485


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

2152


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

2916


How will you divide two numbers in a MACRO?

696