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
find out largest elemant of diagonalmatrix
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.
largest Of three Number using without if condition?
Tell me what are bitwise shift operators?
Explain what are bus errors, memory faults, and core dumps?
Write a program in c to replace any vowel in a string with z?
What is the best organizational structure?
What is meant by recursion?
What are the types of data files?
What are static variables in c?
Can a pointer point to null?
What are the different types of control structures in programming?
What is the difference between break and continue?
Explain what is the best way to comment out a section of code that contains comments?
What are types of structure?