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


Please Help Members By Posting Answers For Below Questions

Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15048


Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

2173


Tell me the use of bit field in c language?

629


in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above

598


What are external variables in c?

546






What is extern c used for?

571


How can a program be made to print the name of a source file where an error occurs?

731


Explain what is the best way to comment out a section of code that contains comments?

720


The difference between printf and fprintf is ?

720


`write a program to display the recomended action depends on a color of trafic light using nested if statments

1631


What is a pointer and how it is initialized?

609


How do you determine a file’s attributes?

600


What does stand for?

596


What is the use of pointers in C?

618


What is the c language function prototype?

644