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

Answers were Sorted based on User's Feedback



program that accepts amount in figures and print that in words..

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

program that accepts amount in figures and print that in words..

Answer / prachi.ktr121

programming

Is This Answer Correct ?    4 Yes 10 No

Post New Answer

More C Interview Questions

What is the difference between union and anonymous union?

0 Answers   Hexaware,


What should not contain a header file?

2 Answers  


What is Memory leakage ?

2 Answers   HCL,


How can I find out how much free space is available on disk?

0 Answers  


why we are using float in C

4 Answers  


What is d scanf?

0 Answers  


what does exit() do?

3 Answers   Cadence,


a linear linked list such that the link field of its last node points to the first node instead of containing NULL a) linked list b) circular linked list c) sequential linked list d) none

0 Answers  


I have a varargs function which accepts a float parameter?

0 Answers  


Compare and contrast compilers from interpreters.

0 Answers  


write a c/c++ program that takes a 5 digit number and calculates 2 power that number and prints it?

4 Answers  


What is the difference between constant pointer and pointer to a constant. Give examples.

4 Answers   TCS,


Categories