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
How are Structure passing and returning implemented by the complier?
Where we use clrscr in c?
How do you print an address?
What are the Advantages of using macro
What does return 1 means in c?
Explain what does a function declared as pascal do differently?
When should the const modifier be used?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
Which is better between malloc and calloc?
What is the use of bit field?
When the macros gets expanded?
Write program to remove duplicate in an array?
Why c is called top down?
What are the advantages and disadvantages of a heap?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..