Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- What is Switch Statement in C?
- Switch statement in C tests the value of a variable and compares it with multiple cases. Once the case match is found, a block of statements associated with that particular case is executed.
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- #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");
- DOWNLOAD LINK:https://ouo.io/jwj53j
Add Comment
Please, Sign In to add comment