#include <stdio.h> int main() { int output, index; scanf("%d", &index); output = 1; for (int i = 0; i < index; i++) { output *= 2; } printf("%d\n", output); return 0; }
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments