1. Write a menu driven program to display the menu as shown below and perform the
necessary output?
Buzz Number
b. GCD
c. Palindrome Number
d. Exit
Answers
Answered by
0
Explanation:
Write a menu driven program to accept a number from the user and check whether it is a ‘BUZZ’ number or to accept any two numbers and print the ‘GCD’ of them. (a) A BUZZ number is the number which either ends with 7 or divisible by 7. (b) GCD (Greatest Common Divisor) of two integers is calculated by continued division method. Divide the larger number by the smaller; the remainder then divides the previous divisor. The process is repeated till the remainder is zero. The divisor then results the GCD.Read more on Sarthaks.com - https://www.sarthaks.com/840771/write-a-menu-driven-program-to-accept-a-number-from-the-user-and-check-whether-it-is-a-buzz
Similar questions