#include <stdio.h> #include <math.h> int main() { int a, b; a = 0; b = 0; for(int i = 1;i <= 30; i ++){ a += 10; int m = pow(2, i - 1) * 1; b += m; } printf("%d %d",a,b); return 0; }