WRITE A PROGRAM TO FIND A REVERSE OF TWO NO

Answer Posted / .::get lost::.

#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 ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a program fibonacci series and palindrome program in c

623


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

1623


I heard that you have to include stdio.h before calling printf. Why?

576


What are types of structure?

595


How can you increase the size of a dynamically allocated array?

636






What is a union?

601


What language is c written?

568


How do you generate random numbers in C?

640


Why can’t constant values be used to define an array’s initial size?

822


Where register variables are stored in c?

534


What is function and its example?

614


What does static variable mean in c?

640


Explain can the sizeof operator be used to tell the size of an array passed to a function?

582


why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

598


What functions are used for dynamic memory allocation in c language?

590