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
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
Why doesn't C support function overloading?
What is gets() function?
Do you know what are bitwise shift operators in c programming?
What is the difference between union and anonymous union?
What is scope rule in c?
What is calloc in c?
Explain a pre-processor and its advantages.
How to find a missed value, if you want to store 100 values in a 99 sized array?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Describe explain how arrays can be passed to a user defined function
Where is c used?
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
In a switch statement, what will happen if a break statement is omitted?
Explain what is a stream?