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 / charusheela

#include<stdio.h>
#include<conio.h>
void main(){
int num=123,r,i=1;
clrscr();
while(num)
{
r=num%10;
printf("%d\n",r*i);
i*=10;
num/=10;
}
getch();
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Ow can I insert or delete a line (or record) in the middle of a file?

949


What is a good way to implement complex numbers in c?

991


What is the process of writing the null pointer?

979


Explain what are the different file extensions involved when programming in c?

1049


How can I implement sets or arrays of bits?

987


What is the difference between break and continue?

1383


How can you check to see whether a symbol is defined?

1044


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

1114


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

1142


What is the sizeof () operator?

1009


Tell me is null always defined as 0(zero)?

1031


What is difference between structure and union with example?

987


What is the explanation for prototype function in c?

921


How can I open files mentioned on the command line, and parse option flags?

1014


how to introdu5ce my self in serco

1936