Program 6- Using the switch statement, write a menu driven program to:
(i) Generate and display the first 10 terms of the Fibonacci series
0, 1, 1, 2, 3, 5 ....The first two Fibonacci numbers are 0 and 1, and
each subsequent number is the sum of the previous two.
(ii) Find the sum of the digits of an integer that is input.
Sample Input: 15390
Sample Output: Sum of the digits=18
For an incorrect choice, an appropriate error message should be
displayed
Answers
Answered by
1
Answer:
sorry I didn't get your question
Similar questions
Business Studies,
3 months ago
Hindi,
3 months ago
Science,
6 months ago
Political Science,
10 months ago
Physics,
10 months ago