HOW TO FIND OUT THE RREVERS OF A GIVEN DIGIT NUMBER IF IT
IS INPUT THROUGH THE KEYBORD BY USING C LANGUAGE
Answer Posted / audumbar
#include<stdio.h>
main()
{
int n;
printf("\n enter the number");
scanf("%d",&n);
while(n!=0)
{
int a=n%10;
printf("%d",a);
n=n/10;
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the importance of c in your views?
What is wrong in this statement? scanf(ā%dā,whatnumber);
Can you write a programmer for FACTORIAL using recursion?
What is n in c?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
What is use of null pointer in c?
Distinguish between actual and formal arguments.
how to count no of words,characters,lines in a paragraph.
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
What does calloc stand for?
When should we use pointers in a c program?
Explain what does the format %10.2 mean when included in a printf statement?
Is r written in c?
Do variables need to be initialized?
What is a string?