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 the mean of function?

1064


Can we declare a function inside a function in c?

989


I came across some code that puts a (void) cast before each call to printf. Why?

1154


Can we use visual studio for c?

1009


Explain Function Pointer?

1103


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

1026


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

994


What is typedf?

1066


Explain what is the heap?

1014


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

1053


Explain the process of converting a Tree into a Binary Tree.

2608


Explain why c is faster than c++?

1005


What is volatile variable in c with example?

997


What are header files in c?

1021


Can you return null in c?

1094