fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int k=0,I,P=1;
  5. for(I=1;I<=10;I+=2)
  6. {
  7. k=k+2*I;
  8. k+=1;
  9. P++;
  10. if(P==3)
  11. printf("%d",k);
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0s 2160KB
stdin
Standard input is empty
stdout
10