simple c program for 12345 convert 54321 with out using string
Answer Posted / abhradeep chatterjee
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
printf("enter a number");
scanf("%d",&i);
for(int n=1;n<=5;n++)
{
j=i%10;
i=i/10;
printf("%d",j);
}
getch();
}
Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What is I ++ in c programming?
Write a program on swapping (100, 50)
What is the explanation for modular programming?
What is a substring in c?
What is pass by reference in functions?
In c language can we compile a program without main() function?
Is c a great language, or what?
How to Throw some light on the splay trees?
Explain what are its uses in c programming?
Write a program to print numbers from 1 to 100 without using loop in c?
what is different between auto and local static? why should we use local static?
How can I insert or delete a line (or record) in the middle of a file?
Define Array of pointers.
Define VARIABLE?
Calculate 1*2*3*____*n using recursive function??