-
Notifications
You must be signed in to change notification settings - Fork 0
/
Part 2.c
125 lines (95 loc) Β· 1.76 KB
/
Part 2.c
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#include<stdio.h>
#include<stdbool.h>
int main(){
int sum1 = 99 + 1;
int sum2 = sum1 + 250;
int sum3 = sum2 + 25;
printf("%d\n",sum3);//not working
int sum4= 45-34;
int sum5= 67*34;
int sum6= 45/24;
int sum7= 45 % 23;
int sum8= ++sum1;
printf("%d\n",sum8);
printf("%d\n",sum7);
printf("%d\n",sum6);
printf("%d\n",sum5);
printf("%d\n",sum4);
int ut=45;
ut+= 5;
printf("%d\n",ut);
int A=1;
A -= 4;
printf("%d\n",A);
int B=44;
B *= 2;
printf("%d\n",B);
int C=35;
C /= 5;
printf("%d\n",C);
int D=1405;
D %= 2;
printf("%d\n",D);
int E=25;
E &= 23;
printf("%d\n",E);
int X=100;
int Y=15;
printf("%d\n",X>Y);
int X2=100;
int Y2=15;
printf("%d\n",X==Y);
int X3=100;
int Y3=15;
printf("%d\n",X!=Y);
int X4=100;
int Y4=15;
printf("%d\n",X<Y);
int X5=100;
int Y5=15;
printf("%d\n",X>=Y);
int X6=100;
int Y6=15;
printf("%d\n",X<=Y);
int X7=100;
int Y7=15;
printf("%d\n",X>Y || X<Y);
int X8=100;
int Y8=15;
printf("%d\n",X>Y && X<Y);
int Myint = 12444545;
printf("%lu\n", sizeof(Myint));
bool AliIsSmart= true;
bool AliIsnOTsMART= false;
printf("%d\n",AliIsSmart);
printf("%d\n",AliIsnOTsMART);
bool isHamburgerTasty = false;
bool isPizzaTasty = true;
// Find out if both hamburger and pizza is tasty
printf("%d\n", isHamburgerTasty == isPizzaTasty);
int MyAge=76;
int VotingAge=18;
printf("%d\n",MyAge>=VotingAge);
int MyAge2=6;
int VotingAge2=18;
if (MyAge2>=VotingAge2) {
printf("Old enough to Vote\n");
} else {
printf("Not Old Enough To Vote\n");
}
if (23<10){
printf("10 is Greater\n");
}
else {
printf("10 is Smaller\n");
}
int time=12;
if (time>10)
{
printf("Good Morning\n");
}
else {
printf("Good night\n");
}
return 0;
}