program that accepts amount in figures and print that in
words
Answers were Sorted based on User's Feedback
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 |
what is the significance of static storage class specifier?
Why data types in all programming languages have some range? Why ritche have disigned first time likethat?Why not a single data type can support all other types?
Design a program using an array that lists even numbers and odd numbers separately from the 12 numbers supplied by a user.
How can you print HELLO WORLD without using "semicolon"?
Switch (i) i=1; case 1 i++; case 2 ++i; break; case 3 --i; Output of i after executing the program
what does exit() do?
write a program that explain #define and # undef directive
What is volatile c?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
what is the difference between 123 and 0123 in c?
What do mean by network ?
How do you do dynamic memory allocation in C applications?