. Write a menu driven program to perform the following tasks by using Switch case statement: 1. To print the series : 0 1 1 2 3 5 8 ……………………. to n terms. (value of ‘n’ is to be an input by the user)
Answers
Answered by
0
A general syntax of how switch-case is implemented in a 'C' program is as follows: switch( expression ) { case value-1: Block-1; Break; case value-2: Block-2; Break; case value-n: Block-n; Break; default: Block-1; Break; } Statement-x; The expression can be integer expression or a charaexpression.
Similar questions