Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

1

C

:
op number <nl>
op
(+, -, *, /) number
. <nl>
.
.

=
.
2

+
*
+
=

100
2
100
50

1.
2.


.

:
result 0.


result. =
.

:
4

+
*
+
=

100
2
100
50

result += 100
result *= 2
result += 100
result -= 50
print result

100
200
300
250
250

3.


:
+ 0
* 1
+ 1 ++result
- 1 result
* 0
(
).
* 2 result <<=
1;


10 2
6

4.
5.

/ 2 result
>>= 1;

10 2


. ..
result = ((100 * 2)+100)-50;
C

. ..

1.

2.

1. #include <stdio.h>
main()
{
int result = ((100 * 2)+100)-50;
print(result=%d\n,result);
}

You might also like