0
How to use Switch Case In c...what is the syntex ??
C Language
4 Respostas
+ 3
Here is an example.
https://www.cprogramming.com/tutorial/c/lesson5.html
+ 12
https://www.tutorialspoint.com/cprogramming/switch_statement_in_c.htm
+ 4
This is C++ example from the SL course
#include <iostream>
using namespace std;
int main()
{
int age = 25;
switch (age) {
case 16:
cout << "Too young";
break;
case 42:
cout << "Adult";
break;
case 70:
cout << "Senior";
break;
default:
cout << "This is the default case";
}
return 0;
}
+ 3
thank You guys...;)