-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroman.cpp
More file actions
47 lines (44 loc) · 883 Bytes
/
roman.cpp
File metadata and controls
47 lines (44 loc) · 883 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
46
47
/* Jacob Privitt CS 150-0
1/29/18 */
#include <iostream>
using namespace std;
int main()
{
int num1;
cout << "Enter a number between 1-10." << endl; //Output
cin >> num1; //Input
switch (num1) //Switch Statement
{
case 1:
cout << "I";
break;
case 2:
cout <<"II";
break;
case 3:
cout << "III";
break;
case 4:
cout << "IV";
break;
case 5:
cout << "V";
break;
case 6:
cout << "VI";
break;
case 7:
cout << "VII";
break;
case 8:
cout << "VIII";
break;
case 9:
cout << "IX";
break;
case 10:
cout << "X";
break;
default: cout << "You entered the wrong number.";
}
}