Computer Science, asked by ameedwaleed2001, 1 month ago

Using switch statement, write a menu-driven program to accept two integer numbers
(first, second) from the user and allow the user to choose one of the following options:

1-Display the binary representation of the first and the second number.
2- Display the sum of all even digits of the second number.
3- Display the sum of prime numbers between the first and the second number.
4- Print "The same" if two numbers have same digits, otherwise print "Not the same".
5- Display the first number after rotating its digits by R.
(R is a number generated randomly (from I to 9), if R is equal or less than 4 using left rotation. Otherwise, using right rotation.
6- Exit.
Note:
1-Print out a menu with numbered options.
2-The program should return to the menu after execution the option.
3-The user can be end the program by choosing the exit option [6] in the menu.
4-If the user input a wrong option, the program must display message that asks the
5-user to choose only a valid option form [1-6] and display the menu again.

Attachments:

Answers

Answered by tatipudiramakrishna7
0

Answer:

baboo meku oka dhandham intha pedha question aaaaaa?

Similar questions