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

Do pointers take up memory?

0 Answers  


What is a file descriptor in c?

0 Answers  


In which layer of the network datastructure format change is done

0 Answers   Honeywell,


Total of how many functions are available in c?

3 Answers  


How can I increase the allowable number of simultaneously open files?

1 Answers   ABC,


Do you know null pointer?

0 Answers  


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

0 Answers  


What is the difference between declaring a variable by constant keyword and #define ing that variable?

1 Answers  


how can i include my own .h file EX:- alex.h like #include<alex.h>, rather than #include"alex.h"

1 Answers  


Explain how can I convert a number to a string?

0 Answers  


swapping of two numbers without using third variable using AND and OR operators

2 Answers  


how can we Declare a variable in c without defining it.

1 Answers   TCS,


Categories