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
will u please send me the placement papers to my mail???????????????????
Explain how do you list a file’s date and time?
What is the meaning of c in c language?
What is the usage of the pointer in c?
What are the types of assignment statements?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
Which header file should you include if you are to develop a function which can accept variable number of arguments?
Why is c fast?
Do you know the difference between exit() and _exit() function in c?
Why clrscr is used in c?
What is a macro, and explain how do you use it?
What do you mean by keywords in c?
How are Structure passing and returning implemented by the complier?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
Are bit fields portable?