MenuDriven1
Submit solution
C, Python
Points:
10 (partial)
Time limit:
8.0s
Memory limit:
64M
Author:
Problem type
Allowed languages
Write a menu driven program to perform the following operations,
- decimal to octal
- LCM of 2 numbers
Decimal to Octal Conversion steps:
a. Divide the number by 8.
b. Get the integer quotient for the next iteration.
c. Get the remainder for the octal digit.
d. Repeat the steps until the quotient is equal to 0.
e. Display the remainders in reverse order.
Sample Input1
1
7562
Sample Output1
16612
Sample Input2
2
5
7
Sample Output2
35
Explanation
The first line is the option number. Followed by option are the input values.
Comments