Add operator_precedence example
This commit is contained in:
parent
8eaf560d0c
commit
7eee3ca736
14
examples/operator_precedence/operator_precedence.mc
Normal file
14
examples/operator_precedence/operator_precedence.mc
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
int main()
|
||||||
|
{
|
||||||
|
int x;
|
||||||
|
x = 4 + 3 * 5 + 6;
|
||||||
|
print_int(x);
|
||||||
|
print_nl();
|
||||||
|
|
||||||
|
int y;
|
||||||
|
y = 4 * 3 + 5 * 6;
|
||||||
|
print_int(y);
|
||||||
|
print_nl();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
@ -0,0 +1,2 @@
|
|||||||
|
25
|
||||||
|
42
|
Loading…
Reference in New Issue
Block a user