Skip to content

Commit b98cfdc

Browse files
committed
C_Tut_13
Order of operations
1 parent 6103472 commit b98cfdc

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

C/13_cProgramming.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
// Order of operations
3+
4+
#include <stdio.h>
5+
#include <stdlib.h>
6+
7+
8+
int main()
9+
{
10+
11+
int a = 4 + 2 * 6;
12+
printf("Result: %d \n", a);
13+
a = (4 + 2) * 6;
14+
printf("Result: %d \n", a);
15+
16+
return 0;
17+
}

0 commit comments

Comments
 (0)