Learn with Vikas Suhag
VR Indian Wanderers Learn with Vikas Suhag Govt Jobs Free Chart Maker Stock Trekker Youtube Instagram RSS Feed
Program to implement condition using "switch" in C Language
Nov 30, 2021   Vikas Suhag

"switch" in C Language

#include<stdio.h>  
void main()
{    
    int number=0;     
    printf("enter a number:");    
    scanf("%d",&number);    
switch(number)
{    
case 10:    
printf("number is equals to 10");    
 break;
case 50:    
 printf("number is equal to 50");    
   break;  
 case 100:    
 printf("number is equal to 100");    
 break;    
 default:    
 printf("number is not equal to 10, 50 or 100");    
 }    
}


Leave a Comment

* Email will not be published.
All comments are only visible after approval.
Most Viewed articles
Travel Blog - VR Indian Wanderers
VR Indian Wanderers
Govt. Jobs Portal
Govt. Jobs Portal
Free Chart Maker
Make free animated Charts from .CSV
Search
Youtube Channel
Subscribe to Email Updates
Connect With Us
VR Indian Wanderers Learn with Vikas Suhag Govt Jobs Free Chart Maker Stock Trekker Youtube Instagram RSS Feed
© 2025 Learn with Vikas Suhag. All Rights Reserved.