Basic To Switch Statement In C #include<stdio.h>int main(){ int password=12; switch (password) { case 12: printf("Password is 12"); break; case 13: printf("Passord is 13"); break; default:printf("Password is none of these"); break; } }
No comments