Use bit shift to calculate
#include <stdio.h> int main(void) { int i = 1; i <<= 3; /* multiply by 2, 3 times */ printf("%d", i); return 0; }