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 does printf does?
Determine the result of performing two successive block transfers into the same area of a frame buffer using the binary arith operations
What are the loops in c?
What does static variable mean in c?
In which area global, external variables are stored?
Is fortran still used in 2018?
write c program to display output 10(10+20)+(10+20+30)+ ... n term
0 Answers Hindustan Gum Chemicals,
pascal triangle program
Can i use Two or More Main Funtion in any C program.?
What is a pragma?
What is Generic pointer? What is the purpose of Generic pointer? Where it is used?
What is an anonymous union and where to apply that ?