-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2_3.cpp
More file actions
34 lines (31 loc) · 910 Bytes
/
Copy path2_3.cpp
File metadata and controls
34 lines (31 loc) · 910 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
#include <stdio.h>
int main() {
char ch;
printf("Enter the first letter:\n");
scanf(" %c", &ch);
switch (ch) {
case 'A':
case 'a':
printf("5 Asian countries: China, Japan, India, Thailand, Vietnam\n");
break;
case 'R':
case 'r':
printf("6 rivers: Nile, Amazon, Yangtze, Mississippi, Danube, Volga\n");
break;
case 'C':
case 'c':
printf("7 European capitals: London, Paris, Berlin, Rome, Madrid, Vienna, Prague\n");
break;
case 'F':
case 'f':
printf("5 flowers: Rose, Tulip, Lily, Daisy, Orchid\n");
break;
case 'T':
case 't':
printf("6 trees: Oak, Pine, Maple, Birch, Willow, Spruce\n");
break;
default:
printf("Error: No list for this letter.\n");
}
return 0;
}