Wisdom Materials
Home
About Us
Our Clients
Careers
Services
Education
Jobs
News
Business
Health
Astrology
Entertainment
RealEstate
Devotion
Contact Us
C Programs
/ Week days if condition C program
Program Name
Write a C Program for Week days if condition C program.
Theory
Program Code
Copy Program Code
#include
int main() { int dayvalue; printf("Week Day"); printf("Enter Day Value: "); scanf("%d",&dayvalue); if(dayvalue==0) printf("Sunday"); if(dayvalue==1) printf("Monday"); if(dayvalue==2) printf("Tuesday"); if(dayvalue==3) printf("Wednesday"); if(dayvalue==4) printf("Thursday"); if(dayvalue==5) printf("Friday"); if(dayvalue==6) printf("Satday"); return 0; }
Input
Week DayEnter Day Value: 5
Output
Friday
Online C Compiler (To copy paste and Run the c program)
Home
Back