-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsemiprob.cpp
More file actions
39 lines (34 loc) · 847 Bytes
/
semiprob.cpp
File metadata and controls
39 lines (34 loc) · 847 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
#include <iostream>
using namespace std;
int main()
{
int number;
float total;
cout << "Today is a great day for Lab" << endl;
cout << "Let's start off by typing a number of your choice" << endl;
cin >> number;
total = number * 2;
cout << total << " is twice the number you typed" << endl;
return 0;
}
int main()
{
cout << "Now is the time for all good men" << endl;
cout << "To come to the aid of their party" << endl;
return 0;
}
int main()
{
char c;
cout << "Enter an alphabet: ";
cin >> c;
if (c == 'a' || c == 'A' || c == 'e' || c == 'E' || c == 'i' || c == 'I' || c == 'o' || c == 'O' || c == 'u' || c == 'U')
{
cout << c << " is a vowel.";
}
else
{
cout << c << " is a consonant.";
}
return 0;
}