-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQuesNo8.cpp
55 lines (45 loc) · 927 Bytes
/
QuesNo8.cpp
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
54
55
#include <iostream>
using namespace std;
int main()
{
int number;
cout << "Enter a number:";
cin >> number;
switch (number)
{
case 0:
cout << "The number is Zero";
break;
case 1:
cout << " The number is One.";
break;
case 2:
cout << " The number is Two.";
break;
case 3:
cout << "The number is three.";
break;
case 4:
cout << "The number is four.";
break;
case 5:
cout << "The number is Five.";
break;
case 6:
cout << " The number is Six.";
break;
case 7:
cout << "The number is Seven.";
break;
case 8:
cout << "The number is Eight.";
break;
case 9:
cout << "The number is Nine.";
break;
default:
cout << "Enter a number between 1 to 9." << endl;
break;
}
return 0;
}