Question
Write a C++ program that read a choice as Characters then do the following: If the user choose (A) as a choice then your program
Write a C++ program that read a choice as Characters then do the following: If the user choose (A) as a choice then your program should read an integer number and then Check if a Number is equal to the sum of its divisors excluding itself. If the user entered (B) as a choice then your program ask the user to enter a long number as an input and display the sum of first and last digit(sum of most right digit with most left digit) Hint: if the number is 5635634, the program display 9. If the user entered (C) as a choice then your program should reads a set of integers (n integers), and then finds and prints the sum of the even and odd integers. If the user entered (D) as a choice then your program should read 3 integer numbers and print the second maximum number of them. If the user entered any other character as a choice then your program should display the following pattern. 1 12 123 1234 12345Required to answer. Multi Line Text.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started