how to find out the reverse number of a digit if it is
input through the keyboard?
Answer Posted / sneha
main( )
{
int x,result,next;
printf("Enter The number to revers=");
scanf("%d",&x);
//5th
result=x%10;
result=result*10;
//4th
next=(x/10)%10;
result=(result+next)*10;
//3rd
next=(x/100)%10;
result=(result+next)*10;
//2nd
next=(x/1000)%10;
result=(result+next)*10;
//1st
next=(x/10000)%10;
result=result+next;
printf("%d",result);
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
Why is c so powerful?
List some applications of c programming language?
how do you programme Carrier Sense Multiple Access
Is c programming hard?
Is c is a middle level language?
What is a static function in c?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
What is class and object in c?
How does pointer work in c?
What is pointer in c?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
What is volatile variable how do you declare it?
Explain the binary height balanced tree?
Explain high-order and low-order bytes.