explain swich case control structure in C with examples
PLZ ANSWER IT URGENT
NO SPAM
Answers
Answered by
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