Use the keyboard to enter a number representing a day of the week. Then, depending on the entered number, display the name of the day of the week:
"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday",
if you enter a number greater than 7 or less than 1, display "No such day o
Day of the week
- 3
Locked
Comments (7)
- Popular
- New
- Old
You must be signed in to leave a comment
Hoist
7 June, 22:09
This is a very thorough code layout and reasoning in Code Gym Help HERE: https://codegym.cc/help/862
> I am just not that good at Java nor Javascript nor C# ... yet ;
if (condition) {
...
}
else if (condition) {
...
}
else {
...
}
0
Ali_Alshehri
24 April, 18:43
there is error in I am sure the number 4 is Thursday
0
Roman
4 May, 06:22
I don't understand what is the error?
0
Ali_Alshehri
8 May, 18:35
when I run the program I am sure the number 4 is Thursday but the compiler shows me an error
0
Roman
16 May, 06:09
Please post your question with the attached solution in the section Help.
0
Paul Melling
20 March, 12:04
Pretty Sure Sunday is the first day of the week.
0
Roman
4 May, 06:21
In this task, the order of days is: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"
+1