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

How is pointer initialized in c?

573


What are qualifiers?

606


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

542


Explain the use of 'auto' keyword

664


Why is c called c?

615






Can we initialize extern variable in c?

624


What is the difference between array and pointer in c?

566


Differentiate between a structure and a union.

752


Explain what is the stack?

624


Write a program to find factorial of a number using recursive function.

632


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

632


a program that can input number of records and can view it again the record

1474


swap 2 numbers without using third variable?

652


Explain the difference between the local variable and global variable in c?

587


How do I copy files?

614