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
Explain how can I read and write comma-delimited text?
What is a nested formula?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
Calculate 1*2*3*____*n using recursive function??
Write a program to check prime number in c programming?
Can we use visual studio for c?
How can I prevent another program from modifying part of a file that I am modifying?
show how link list can be used to repersent the following polynomial i) 5x+2
what is the format specifier for printing a pointer value?
Why is it that not all header files are declared in every C program?
How would you obtain the current time and difference between two times?
What is getch c?
can we implement multi-threads in c.
How can you call a function, given its name as a string?
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers