"input number between 0 and 7 and print day of week" Code Answer's
You're definitely familiar with the best coding language Whatever that developers use to develop their projects and they get all their queries like "input number between 0 and 7 and print day of week" answered properly. Developers are finding an appropriate answer about input number between 0 and 7 and print day of week related to the Whatever coding language. By visiting this online portal developers get answers concerning Whatever codes question like input number between 0 and 7 and print day of week. Enter your desired code related query in the search bar and get every piece of information about Whatever code related question on input number between 0 and 7 and print day of week.
input number between 0 and 7 and print day of week
/**
* C program to print day name of week
*/
#include <stdio.h>
int main()
{
int week;
/* Input week number from user */
printf("Enter week number (1-7): ");
scanf("%d", &week);
if(week == 1)
{
printf("Monday");
}
else if(week == 2)
{
printf("Tuesday");
}
else if(week == 3)
{
printf("Wednesday");
}
else if(week == 4)
{
printf("Thursday");
}
else if(week == 5)
{
printf("Friday");
}
else if(week == 6)
{
printf("Saturday");
}
else if(week == 7)
{
printf("Sunday");
}
else
{
printf("Invalid Input! Please enter week number between 1-7.");
}
return 0;
}
Source: codeforwin.org
All those coders who are working on the Whatever based application and are stuck on input number between 0 and 7 and print day of week can get a collection of related answers to their query. Programmers need to enter their query on input number between 0 and 7 and print day of week related to Whatever code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about input number between 0 and 7 and print day of week for the programmers working on Whatever code while coding their module. Coders are also allowed to rectify already present answers of input number between 0 and 7 and print day of week while working on the Whatever language code. Developers can add up suggestions if they deem fit any other answer relating to "input number between 0 and 7 and print day of week". Visit this developer's friendly online web community, CodeProZone, and get your queries like input number between 0 and 7 and print day of week resolved professionally and stay updated to the latest Whatever updates.