summaryrefslogtreecommitdiff
path: root/2/3_int_arith/243.c
blob: 9a60eda7a521bbb976cbd73e0db7d059f9603e4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// #define M
// #define K
// int arith(int x, int y) {
//     int result = 0;
//     result = x*M + y/N;
//     return result;
// }
//
// int optarith(int x, int y) {
//     int t = x;
//     x <<= 5;
//     x -= t;
//     if (y < 0) y += 7;
//     y >>= 3;
//     return x+y;
// }
#include <stdio.h>

int main() {
    int x = 3;
    printf("%d", x<<1);
}