Skip to content

Conversation

@enzobarba
Copy link

No description provided.

Comment on lines +18 to +32
int main(){

double x, y;

do{
cout << "Inserisci due numeri: ";
cin >> x >> y;
}while(y == 0);

cout << "SUM: " << x + y <<endl;
cout << "Difference: " << x - y <<endl;
cout << "Multiplication: " << x * y <<endl;
cout << "Division: " << x / y <<endl;

return EXIT_SUCCESS;

Choose a reason for hiding this comment

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

Poi fai una funzione per fare i calcoli.

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