Computer Science, asked by garima23agarwal, 7 months ago

. 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 SOURABH0234
0

 \huge \mathfrak{answer}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