Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

Commit

Permalink
add esercizio massimo tra due numeri
Browse files Browse the repository at this point in the history
  • Loading branch information
mc-cat-tty committed Sep 30, 2021
1 parent e58e431 commit 092c352
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions esercitazioni/stampa_max.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <iostream>

using namespace std;

int main() {
int a, b;
cout << "Inserisci a e b: ";
cin >> a >> b;
int max = a>=b ? a : b;
cout << "Il massimo tra i due numeri è: " << max << endl;
return 0;
}

0 comments on commit 092c352

Please sign in to comment.