#include<stdio.h> main() { int i,n; long m1,m2; m1=i*i; m2=i*i*i; printf("Input n:"); scanf("%d",&n); for(i=1;i<=n;i++) { printf("%d^2=%ld %d^3=%ld\n",i,m1,i,m2); } }