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 .obj file in c?
write a program to print calender using for loop.
main() { char x; while(x=0;x<=255;x++) printf("\nAscii value %d Charater %c",x,x); }
Explain how can I pad a string to a known length?
Is printf a keyword?
Write a c program to print the even numbers followed by odd numbers in an array without using additional array
write a program to find the frequency of a number
2.main { int x,j,k; j=k=6;x=2; x=j*k; printf("%d", x);
how many keywords do C compile?
7 Answers Microsoft, Practical Viva Questions,
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
write a c prog for removing duplicate character from an array and sorting remaining elements using a single array
Function to find the given number is a power of 2 or not?