SHJordan

Untitled

May 23rd, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. int main()
  6. {
  7.     int a, b, i;
  8.     for (i=0;i<100 ;i++ ){
  9.         a=pow(i,2);
  10.         printf("Quadrado de i %d\n",a);
  11.         if (a%6==0){
  12.             b=pow(a,2);
  13.             printf("Multiplo de 6 elevado ao quadrado: %d\n",b);
  14.         };
  15.     };
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment