Math, asked by kavitavikal1983, 6 months ago

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 anshikapal68
1

Answer:

sorry I didn't get your question

Similar questions