Skip to content

Commit 004c10a

Browse files
committed
refactor: remove unnecessary endl
1 parent 75d9277 commit 004c10a

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

exercises/ex1.cpp

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,32 @@ int main()
1212
cin >> week;
1313
switch (week){
1414
case 1:
15-
cout << "Monday" << endl;
15+
cout << "Monday";
1616
break;
1717
case 2:
18-
cout << "Tuesday" << endl;
18+
cout << "Tuesday";
1919
break;
2020
case 3:
21-
cout << "Wednesday" << endl;
21+
cout << "Wednesday";
2222
break;
2323
case 4:
24-
cout << "Thursday" << endl;
24+
cout << "Thursday";
2525
break;
2626
case 5:
27-
cout << "Friday" << endl;
27+
cout << "Friday";
2828
break;
2929
case 6:
30-
cout << "Saturday" << endl;
30+
cout << "Saturday";
3131
break;
3232
case 7:
33-
cout << "Sunday" << endl;
33+
cout << "Sunday";
3434
break;
3535
default:
36-
cout << "Invalid input! Please enter week number between 1-7." << endl;
36+
cout << "Invalid input! Please enter week number between 1-7.";
3737
break;
3838
}
3939

40-
return 0;
40+
cout << endl;
41+
42+
return EXIT_SUCCESS;
4143
}

0 commit comments

Comments
 (0)