Computer Science, asked by kavyaramesha2204, 5 months ago

explain swich case control structure in C with examples

PLZ ANSWER IT URGENT
NO SPAM​

Answers

Answered by riyaatschool
0

Answer:

#include <stdio.h>

int main() {

int num = 8;

switch (num) {

case 7:

printf("Value is 7");

break;

case 8:

printf("Value is 8");

break;

case 9:

printf("Value is 9");

break;

default:

printf("Out of range");

break;

}

return 0;

}

Please mark brainliest need only 1 to get promoted

pleaseeeeeeeee

Similar questions