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...

program that accepts amount in figures and print that in
words

Answer Posted / shilpa

int num, temp,lastnumber[100];

num=12345;
temp=num;
for(int i=1;temp==0;i++)
temp=temp/10; //to check how many digits are there
// even if zero is included in it like 10004
// so number of digits is equal to i;
temp=num;
for(int j=1;i==j;j++)
{
num=num/10; // since num is integer it will exculde the decimal
num=num*10; // exclude number will be replaced by zero
lastnumber[j]=temp-num;
temp=num;
}

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is wrong with this initialization?

1014


What are identifiers in c?

1205


Explain 'bus error'?

1103


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

2026


`write a program to display the recomended action depends on a color of trafic light using nested if statments

2137


How can you read a directory in a C program?

1149


What is c language and why we use it?

1078


What is hash table in c?

1027


What is the difference between far and near ?

1199


Can a variable be both static and volatile in c?

1048


What is the mean of function?

1140


What are the types of pointers in c?

1029


What is a macro?

1119


How do I copy files?

1066


What are dangling pointers? How are dangling pointers different from memory leaks?

1327