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 | 4 No |
Post New Answer View All Answers
What is difference between Structure and Unions?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
pierrot's divisor program using c or c++ code
How can a number be converted to a string?
Write a program to check prime number in c programming?
Do you know the difference between malloc() and calloc() function?
How can I read data from data files with particular formats?
what do u mean by Direct access files? then can u explain about Direct Access Files?
What is the difference between char array and char pointer?
How to find a missed value, if you want to store 100 values in a 99 sized array?
How can I send mail from within a c program?
Can we access the array using a pointer in c language?
What is the difference between void main and main in c?
What is the purpose of main( ) in c language?
What are compound statements?