Question
Write a menu driven program (using switch-case) which accepts a number as user input: A) Prints sum of digits of the given number B) Prints reverse of the given number.
09 Jan 2026
Answer :
Word Count : 129
```cpp #include using namespace std; int main() { int choice, number; cout << "Enter a number: "; cin >> number; cout << "Choose an option:\n"; cout << "1. Sum of digits\n"; _______ ________ _____ ________ _____ ______ __________ ____ ______ _________.
_____ _____ _________ _____ __________ ________ _______ _________.
______ _____ _______ _____ ___ ________ __________ _____.
____ _____ ______ _________ ______ ______ _________ _____ ______.
__________ ________ ___ _______ __________ ________ __________ ____ ________.
_____ _______ _________ _______ _______ ______ ______ ___ __________.
__________ ______ _____ ________ _____ ______ ______ __________ ______ _________ ____.
____ _____ ___ _____ ______ ____ ___.
__________ _____ ____ ____ _____ _____ ___.
____ ___ ________ ______ ______ __________ ________ _______ ________.
________ ____ ________ ________ ____ ____ _________ ________ _______.
_________.
Get Full Answer on WhatsApp
```cpp #include
_____ _____ _________ _____ __________ ________ _______ _________.
______ _____ _______ _____ ___ ________ __________ _____.
____ _____ ______ _________ ______ ______ _________ _____ ______.
__________ ________ ___ _______ __________ ________ __________ ____ ________.
_____ _______ _________ _______ _______ ______ ______ ___ __________.
__________ ______ _____ ________ _____ ______ ______ __________ ______ _________ ____.
____ _____ ___ _____ ______ ____ ___.
__________ _____ ____ ____ _____ _____ ___.
____ ___ ________ ______ ______ __________ ________ _______ ________.
________ ____ ________ ________ ____ ____ _________ ________ _______.
_________.
Get Full Answer on WhatsApp
Related Questions
A person deposits Rs. 1000 in a fixed account yielding 5% interest. Complete the amount in the account at the end of each year for n years.
Write a method to compute the factorial of a number.
Read a two-dimension array. Find the sum of two 2D Array.
Write a program to display the first n terms of a Fibonacci series.
Write a java program to compute maximum of three numbers: A) using ternary operator. B) Using if-else statement.
Read n numbers. Count the number of negative numbers, positive numbers and zeros in the list.
All questions are compulsory.
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★