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 |
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
How can I get Single byte from 'int' type variable? Can we alter single bit or multiple bits in int type variable? if so, How?
write a program for size of a data type without using sizeof() operator?
22 Answers HCL, IBM,
Are there constructors in c?
Can you think of a logic behind the game minesweeper.
main() { int i; printf("%d",i^i); }
how to construct a simulator keeping the logical boolean gates in c
How does the assert() function work?
can u write a program in C, which does not use = (eqaul)or any arithmatic assignment(like -=,+=,*= etc) operator to swap to number?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
What is a c token and types of c tokens?
Is there a way to compare two structure variables?