HOW TO FIND OUT THE RREVERS OF A GIVEN DIGIT NUMBER IF IT
IS INPUT THROUGH THE KEYBORD BY USING C LANGUAGE
Answer Posted / yogita
#include<stdio.h>
void main()
{
int n;
printf("enter any number");
scanf("%d",&n);
while(n>0)
{
a=n%10;
n=n/10;
pritnf("%d",a);
}
getch();
}
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
Write a c program to demonstrate character and string constants?
What are c identifiers?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
How can I prevent another program from modifying part of a file that I am modifying?
C program to find all possible outcomes of a dice?
Explain what is wrong in this statement?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
Explain what are multidimensional arrays?
What is operator precedence?
Why do we use int main instead of void main in c?
Can true be a variable name in c?
What are the benefits of organizational structure?
Explain the meaning of keyword 'extern' in a function declaration.
Why does everyone say not to use scanf? What should I use instead?
Describe the difference between = and == symbols in c programming?