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
Is it possible to execute code even after the program exits the main() function?
How do we declare variables in c?
How to delete a node from linked list w/o using collectons?
How do you declare a variable that will hold string values?
Write a code of a general series where the next element is the sum of last k terms.
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
What is the need of structure in c?
What is the translation phases used in c language?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
Should I learn data structures in c or python?
What are the two types of structure?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
Is a pointer a kind of array?
In c language can we compile a program without main() function?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?