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

i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

2311


Why doesn't C support function overloading?

2718


What is gets() function?

1113


Do you know what are bitwise shift operators in c programming?

1090


What is the difference between union and anonymous union?

1289


What is scope rule in c?

1049


What is calloc in c?

1126


Explain a pre-processor and its advantages.

1120


How to find a missed value, if you want to store 100 values in a 99 sized array?

1398


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1018


Describe explain how arrays can be passed to a user defined function

1083


Where is c used?

1081


which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above

2043


In a switch statement, what will happen if a break statement is omitted?

1052


Explain what is a stream?

1073