WRITE A PROGRAM TO FIND A REVERSE OF TWO NO

Answer Posted / ashok

#include<stdio.h>
#include<conio.h>
void main();
int a;
clrscr();
float rem=0,rev=0;
while(rev>=0)
{
rem=a%10;
rev=rev+rem;
a=a/10;
}
printf(Reverse of two digit no is:=%d",rev);
getch();
}

Is This Answer Correct ?    21 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is array within structure?

589


When is the “void” keyword used in a function?

845


Why is event driven programming or procedural programming, better within specific scenario?

1955


Why do we use null pointer?

609


What does malloc () calloc () realloc () free () do?

563






Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

661


Explain data types & how many data types supported by c?

588


What does return 1 means in c?

590


What is a null string in c?

593


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1471


Explain what are the different data types in c?

762


Write a program to check palindrome number in c programming?

601


where are auto variables stored? What are the characteristics of an auto variable?

597


why do some people write if(0 == x) instead of if(x == 0)?

657


What are file streams?

574