SHARE
TWEET

5

Samiul_Islam_Abir Jun 20th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int week;
  5.     printf("Enter week Number (1-7): ");
  6.     scanf("%d",&week);
  7.  
  8.     if(week==1)
  9.     {
  10.         printf("Friday");
  11.     }
  12.     else if(week==2)
  13.     {
  14.         printf("Saturday");
  15.     }
  16.     else if(week==3)
  17.     {
  18.         printf("sunday");
  19.  
  20.     }
  21.     else if(week==4)
  22.     {
  23.         printf("Monday");
  24.     }
  25.     else if(week==5)
  26.     {
  27.         printf("Tuesday");
  28.     }
  29.     else if(week==6)
  30.     {
  31.         printf("Wednesday");
  32.     }
  33.     else if(week==7)
  34.     {
  35.         printf("Thursday");
  36.     }
  37.     else
  38.     {
  39.         printf("Input Invalid!");
  40.     }
  41.     return 0;
  42.  
  43. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top