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
Does * p ++ increment p or what it points to?
What is wrong with this program statement?
How can I trap or ignore keyboard interrupts like control-c?
Why c is a procedural language?
How can I handle floating-point exceptions gracefully?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
program for reversing a selected line word by word when multiple lines are given without using strrev
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
How can I dynamically allocate arrays?
code for replace tabs with equivalent number of blanks
Hai what is the different types of versions and their differences
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
What is a pointer value and address in c?
What is break statement?