If input is 123 then how to print 100 and 20 and 3 seperately?
Answer Posted / dhruv sharma rkdf
#include<stdio.h>
#include<conio.h>
void main(){
int n,temp,i=1;
clrscr();
printf("enter number:");
scanf("%d",&n);
for(;n>0;n=n/10){
temp=(n%10)*i;
i*=10;
printf("%d\n",temp)
}
getch();
}
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What functions are in conio h?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
What is the difference between arrays and pointers?
What is nested structure in c?
string reverse using recursion
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
Difference between linking and loading?
Explain the properties of union.
Explain what is wrong with this statement? Myname = ?robin?;
Differentiate between the expression “++a” and “a++”?
How do I determine whether a character is numeric, alphabetic, and so on?
What is the description for syntax errors?
What is the difference between procedural and functional programming?
how do you execute a c program in unix.
What is pragma in c?