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 array of pointers to string?
write a program for 4 4 3 3 3 3 2 2 2 2 2 2 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 2 2 2 2 2 2 3 3 3 3 4 4
name the language for writing c compiler?
Tell me when would you use a pointer to a function?
What is the collection of communication lines and routers called?
Is c is a middle level language?
What is array of structure in c programming?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
Did c have any year 2000 problems?
What is identifier in c?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
Does free set pointer to null?