Skip to content

Conversation

@Nathh17
Copy link

@Nathh17 Nathh17 commented Oct 30, 2025

Replaced if-else with a week array

Comment on lines 17 to 21
if(week<1){
cout << "Error: Insert number between 1-7" <<endl;
return -1;
}
cout << arr[week-1] <<endl;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cosa succede se inserisco un numero maggiore di 7?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants