Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain how can I read and write comma-delimited text?

1159


What is a nested formula?

1150


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

8041


Calculate 1*2*3*____*n using recursive function??

2036


Write a program to check prime number in c programming?

1090


Can we use visual studio for c?

1084


How can I prevent another program from modifying part of a file that I am modifying?

1056


show how link list can be used to repersent the following polynomial i) 5x+2

2298


what is the format specifier for printing a pointer value?

1018


Why is it that not all header files are declared in every C program?

1215


How would you obtain the current time and difference between two times?

1287


What is getch c?

1296


can we implement multi-threads in c.

1127


How can you call a function, given its name as a string?

1155


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

1194