C Programming
C Programming

Input number below 7 and print Day of week, switch programming, switch programming in C, switch programming in JAVA, programming questions

Input number below 7 and print Day of week, switch programming, switch programming in C, switch programming in JAVA, programming questions

C Programming
C Programming

Input number below 7 and print Day of week, switch programming, switch programming in C, switch programming in JAVA, programming questions

 

#include<stdio.h>
int main(int argc, char const *argv[])
{
int d;
printf("ENTER ANY NUMBER FROM 1-7 :");
scanf("%d",&d);
switch(d)
{
case 1:printf("SUNDAY");break;
case 2:printf("MONDAY");break;
case 3:printf("TUESDAY");break;
case 4:printf("WEDNESDAY");break;
case 5:printf("THURSDAY");break;
case 6:printf("FRIDAY");break;
case 7:printf("SATURDAY");break;
default:printf("INVALID INPUT");
}
return 0;
}

 

Program by Anshul

 


 

Topics Covered :

  • c programming
  • switch configuration
  • switch
  • switch statement
  • switch in c
  • programming
  • cisco switch configuration
  • basic switch configuration
  • how to switch configuration
  • switch condition
  • switch in c language
  • initial switch configuration
  • switch statement in c
  • c programming lectures
  • c programming for gate
  • cisco switch basic configuration
  • c (programming language)
  • initial switch configuration cisco
  • how to switch configuration with commands
  • c programming for interviews

 


 

 


 

Thanks for reading this blog. Hope you get satisfied with the blog and definitely this blog must have valued your time and effort of reading.

Take a time to connect our other digital creations such as Instagram , Facebook and Youtube.

 

πŸ§‘β€πŸ’»πŸ§‘β€πŸ’»Β Social MediaΒ LinksΒ ofΒ Tech DCodeΒ :

πŸ‘‰πŸ»Β YouTube :Β https://www.youtube.com/channel/UCjJnEdeugftBwQ3yMuD4B_A
πŸ‘‰πŸ»Β Instagram :Β https://www.instagram.com/thetechdcode/
πŸ‘‰πŸ»Β Facebook Page :Β https://www.facebook.com/thetechdcode
πŸ‘‰πŸ»Β Twitter :Β https://twitter.com/thetechdcode
πŸ‘‰πŸ»Β Telegram Channel :Β https://t.me/thetechdcode
πŸ‘‰πŸ»Β Tech DCode Linktree :Β https://linktr.ee/thetechdcode
πŸ‘‰πŸ»Β My Personal Handles :Β https://linktr.ee/virtualshivamin

πŸ§‘β€πŸ’»πŸ§‘β€πŸ’»Β Social Media LinksΒ ofΒ SHIVAM SINGHΒ (OWNER) :

πŸ‘‰πŸ»Β Instagram :Β https://www.instagram.com/virtualshivamin/
πŸ‘‰πŸ»Β Facebook Page :Β https://www.facebook.com/virtualshivamin/
πŸ‘‰πŸ»Β Twitter :Β https://twitter.com/virtualshivamin/
πŸ‘‰πŸ»Β Personal Linktree :Β https://linktr.ee/virtualshivaminΒ 

 

Leave a Reply

Your email address will not be published. Required fields are marked *