Skip to content

Conversation

@DavideAvellino
Copy link

No description provided.

std::cout << "Division: " << std::fixed << std::setprecision(2) << num1 / num2 << std::endl;
} else {
std::cout << "Division: Cannot divide by zero" << std::endl;
}
Copy link
Member

Choose a reason for hiding this comment

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

potresti estrarre l'implementazione in una funzione a parte

std::cout << "Division: Cannot divide by zero" << std::endl;
}

return 0;
Copy link
Member

Choose a reason for hiding this comment

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

0 è poco significativo, potresti usare un #define EXIT_SUCCESS 0 e sostituire questo "magic number"

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