to find out the reverse digit of a given number

Answer Posted / vishnu

#include<stdio.h>
#include<conio.h>
void main()
{
int r,num,sum=0;
clrscr();
printf("Enter any Digit \n");
scanf("%d", &num);
while(num!=0)
{
r=num%10;
sum=sum*10+r;
num=num/10;
}
printf("Reverse Digit of a given number = %d",sum);
getch();
}

Is This Answer Correct ?    66 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

find out largest elemant of diagonalmatrix

1757


FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

1386


largest Of three Number using without if condition?

1124


Tell me what are bitwise shift operators?

760


Explain what are bus errors, memory faults, and core dumps?

906






Write a program in c to replace any vowel in a string with z?

773


What is the best organizational structure?

749


What is meant by recursion?

713


What are the types of data files?

822


What are static variables in c?

728


Can a pointer point to null?

688


What are the different types of control structures in programming?

749


What is the difference between break and continue?

702


Explain what is the best way to comment out a section of code that contains comments?

813


What are types of structure?

701