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 #pragma statements?
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
Which header file should you include if you are to develop a function which can accept variable number of arguments?
How can you determine the maximum value that a numeric variable can hold?
What is sorting in c plus plus?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Write the test cases for checking a variable having value in range -10.0 to +10.0?
Write a c program to demonstrate character and string constants?
string reverse using recursion
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
How can I do serial ("comm") port I/O?
What is the purpose of realloc()?
Should I learn c before c++?
How many types of operator or there in c?