Smipple is shutting down Nov 30, 2017. Some features are currently disabled.
Profile image for Alex Jose Silva alexjosesilva
1143 uri online
Language
C
Tags
C URI

1143

1 #include <stdio.h> 2 3 int main() { 4 5 int N,i,x,y,z; 6 7 i = 1; 8 scanf("%i",&N); 9 10 if (1<N && N <1000){ 11 while(i<=N){ 12 x = pow(i,1); 13 y = pow (i,2); 14 z = pow (i,3); 15 printf("%i %i %i\n",x,y,z); 16 i++; 17 } 18 } 19 20 return 0; 21 }

Comments