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

Commit

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

using namespace std;

int main() {
int voto;
cout << "Inserisci voto: ";
cin >> voto;
if (voto > 27) // Ramo if
cout << "Prog1 è il miglior corso" << endl;
else // Ramo else
cout << "Non ho seguito le lezioni" << endl;
return 0;
}

0 comments on commit e58e431

Please sign in to comment.