Skip to content

Commit c2efcab

Browse files
committed
Add Esercizio1 2017_2018
1 parent 6f3340d commit c2efcab

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

Esercizi assegnati/2017-2018/Cartella vuota

Whitespace-only changes.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#include<iostream>
2+
3+
using namespace std;
4+
5+
int main()
6+
{
7+
// delimitatore iniziale output del programma (stringa "start")
8+
// ATTENZIONE! Non cancellare l'istruzione sottostante
9+
cout << "start" << endl;
10+
11+
// inserire qui il codice del programma
12+
13+
int a,b,c;
14+
cin>>a>>b>>c;
15+
16+
if((a<b)&&(a<c)){cout<<"il minimo e': "<<a<<endl;}
17+
else if((b<c)&&(b<a)){cout<<"il minimo e': "<<b<<endl;}
18+
else if((c<b)&&(c<a)){cout<<"il minimo e': "<<c<<endl;}
19+
else if((c==b) ||(c==a) || (a==b)){cout<<"il minimo e': "<<c<<endl;}
20+
21+
22+
// delimitatore finale output del programma (stringa "end")
23+
// ATTENZIONE! Non cancellare l'istruzione sottostante
24+
cout << "end" << endl;
25+
}
Binary file not shown.

0 commit comments

Comments
 (0)