Skip to content

Commit 3685412

Browse files
operators in c-lang (#14)
2 parents 9fc3dd8 + 0af9d91 commit 3685412

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

5_operators.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include <stdio.h>
2+
3+
int main() {
4+
int sum1 = 100 + 50; // 150 (100 + 50)
5+
int sum2 = sum1 + 250; // 400 (150 + 250)
6+
int sum3 = sum2 + sum2; // 800 (400 + 400)
7+
printf("%d\n", sum1);
8+
printf("%d\n", sum2);
9+
printf("%d\n", sum3);
10+
return 0;
11+
}

5_operators.exe

323 KB
Binary file not shown.

0 commit comments

Comments
 (0)