forked from buckyroberts/Source-Code-from-Tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path16_cppBeginners.cpp
More file actions
34 lines (26 loc) · 715 Bytes
/
16_cppBeginners.cpp
File metadata and controls
34 lines (26 loc) · 715 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 <iostream>
using namespace std;
int main()
{
int x = 10;
int y = 43;
if (x == 10){ // 10 equals 10 - true
cout << "omg i am preggy" << endl;
}
if (x != 87){ // 10 is not equal to 87 - true
cout << "omg i am preggy" << endl;
}
if (x < 87){ // is 10 less than 87? - true
cout << "omg i am preggy" << endl;
}
if (x > 87){ // is 10 greater than 87? - false
cout << "omg i am preggy" << endl;
}
if (x <= 10){ // is 10 less than or equal to 10? - true
cout << "omg i am preggy" << endl;
}
if (x >= y){ // is 10 greater than or equal to 43 - false
cout << "omg i am preggy" << endl;
}
return 0;
}