Answer Posted / bhavesh kashikar
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a;
float rem=0,rev=0;
while(rev>=0)
{
rem=a%10;
rev=rev*10+rem;
a=a/10;
}
printf(Reverse of two digit no is:=%d",rev);
getch();
}
| Is This Answer Correct ? | 13 Yes | 4 No |
Post New Answer View All Answers
How do you define a function?
largest Of three Number using without if condition?
Suggesting that there can be 62 seconds in a minute?
What does sizeof function do?
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
How can I read data from data files with particular formats?
What is double pointer?
What is the purpose of sprintf?
How was c created?
What is adt in c programming?
What is array of pointers to string?
What does c mean in standard form?
Does sprintf put null character?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
Explain how can type-insensitive macros be created?