Question: solve it with C++ Task 2: Sum and product of digits Write a program that uses a function to find the sum and the product
Task 2: Sum and product of digits Write a program that uses a function to find the sum and the product of digits of a given number. Note: you must print the result inside the main function and write the process of finding the sum and product of digits inside another function. Practice Questions: Try these problems 1. Write a program to multiply and divide two numbers using function and pointers. 2. Write a program to input marks of three students and display the average, largest, and smallest marks. The program should use only one function with pointer parameters to compute the average, largest, and smallest marks. The input and output should be performed in the main program. 3. Write a program that inputs a number. The program then displays the square and cube of this number. The computation of square and cube is performed by a function using pointers. 4. Write a program that inputs a number. The program then prints the factorial and the largest factor (the biggest number dividing this number) of this number. The computation of factorial and largest factor is performed by a function using pointers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
