-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhello_world.cpp
More file actions
45 lines (30 loc) · 772 Bytes
/
hello_world.cpp
File metadata and controls
45 lines (30 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include <iostream>
using namespace std;
int main() {
// char c = 0, cp;
//
// do {
// cp = c;
// cout<<"inserisci un carattere:";
// cin>>c;
// }while (c != cp + 1);
//
// int numero_inserimenti;
// int numero;
// int n_pari = 0, n_dispari = 0;
// cout<<"quanti numeri vuoi inserire";
// cin>>numero_inserimenti;
//
// for (int i = 0; i < numero_inserimenti; i++) {
// cout<<"inserisci un numero: ";
// cin>>numero;
// if (pari(numero)){
// n_pari++;
// }else {
// n_dispari++;
// }
// }
//
// cout<<"hai inserito "<<n_pari<<" numeri pari"<<endl;
// cout<<"hai inserito "<<n_dispari<<" numeri dispari";
}