-
Notifications
You must be signed in to change notification settings - Fork 0
/
commit09.txt
53 lines (48 loc) · 888 Bytes
/
commit09.txt
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
46
47
48
49
50
51
52
53
//Commit 02 por Heberty carlos, Eng04na. Números romanos usando switch.
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
int valor;
cout << "--Aqui voce sabera alguns dos numeros romanos--" << endl << endl;
cout << "Digite qual numero gostaria de saber de 1 a 10 : " ;
cin >> valor ;
switch (valor)
{
case 1 : ;
cout << endl << "I" ;
break;
case 2 : ;
cout << endl << "II" ;
break;
case 3 : ;
cout << endl << "III" ;
break;
case 4 : ;
cout << endl << "IV" ;
break;
case 5 : ;
cout << endl << "V" ;
break;
case 6 : ;
cout << endl << "VI" ;
break;
case 7 : ;
cout << endl << "VII" ;
break;
case 8 : ;
cout << endl << "VIII" ;
break;
case 9 : ;
cout << endl << "IX" ;
break;
case 10 : ;
cout << endl << "X" ;
break;
default : ;
cout << endl << "Valor Inválido";
}
getch();
return 0;
}