fork download
  1. #include <stdio.h>
  2.  
  3. #define SQR(x) ((x)*(x))
  4.  
  5. int main(){
  6. int count;
  7. for(count=0; count<5; ++count){
  8. printf("%d, %d", count+1, SQR(count+1));
  9. }
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 2724KB
stdin
Standard input is empty
stdout
1, 12, 43, 94, 165, 25