Write an algorithm for a program that receives an integer as
input and outputs
the product of of its digits. E.g. 1234 = 24, 705 = 0
Answer Posted / pavithra
jus use an array to store d i/p
nd multiply the array elements
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
Is that possible to store 32768 in an int data type variable?
What are the application of void data type in c?
Write a program to reverse a given number in c language?
What is the difference between fread and fwrite function?
What is enumerated data type in c?
What is the usage of the pointer in c?
Why should I prototype a function?
What are control structures? What are the different types?
What is difference between union and structure in c?
What is function pointer c?
Are there any problems with performing mathematical operations on different variable types?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
Between macros and functions,which is better to use and why?