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.
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"; cout << "2.
____ _________ ____ _____ __________ ________ _________ _________ ____._____ ________ _____ _____ ________ _______ ____ _____ _______ __________ ________ _______.
___ _______ _________ _________ ________ __________ _____ __________.
_____ _____ _________ _____ ___ ____ ________.
___ _______ _______ _____ ________ ______ ____.
____ ___ _______ ______ ______ ____ __________ ______ ____.
________ ______ _________ __________ __________ ____ ___ ____ ___ __________.
_______ __________ _________ _____ ______ _________ _____ ___ ____.
___ ______ _____ ________ ____.
____ _________ _______ __________ ________ _______ ______ _____ __________ _________ _____.
__________ ______ _______ ___ _________ _________ _________.
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.