File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed
Esercizi assegnati/2017-2018 Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments