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 |
Do pointers take up memory?
What is a file descriptor in c?
In which layer of the network datastructure format change is done
Total of how many functions are available in c?
How can I increase the allowable number of simultaneously open files?
Do you know null pointer?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
What is the difference between declaring a variable by constant keyword and #define ing that variable?
how can i include my own .h file EX:- alex.h like #include<alex.h>, rather than #include"alex.h"
Explain how can I convert a number to a string?
swapping of two numbers without using third variable using AND and OR operators
how can we Declare a variable in c without defining it.