to find out the reverse digit of a given number
Answer Posted / vaibhav
#include<stdio.h>
#include<conio.h>
void main()
{
int no, t;
clrscr();
printf("\nenter the no.");
scanf("%d",&no);
while(no!=0)
{
t=no%10;
no=no/10;
printf("%d",t);
}
getch();
}
Is This Answer Correct ? | 23 Yes | 9 No |
Post New Answer View All Answers
Write a program to reverse a string.
Explain #pragma statements.
Explain how do you list files in a directory?
What is the g value paradox?
What is a floating point in c?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
Multiply an Integer Number by 2 Without Using Multiplication Operator
How can you restore a redirected standard stream?
Can true be a variable name in c?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
What is the correct code to have following output in c using nested for loop?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
How can you convert integers to binary or hexadecimal?