fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int a,b,i;
  5. scanf("%d",&a);
  6. if(a>5 && a<2000)
  7. {
  8. for(i=1; i<=a; i++)
  9. {
  10. if(i%2==0)
  11. {
  12. b=i*i;
  13. printf("%d^2 = %d\n",i,b);
  14. }
  15. }
  16. }
  17. return 0;
  18. }
Success #stdin #stdout 0s 4444KB
stdin
Standard input is empty
stdout
Standard output is empty