fork download
  1. #include <stdio.h>
  2. int main(){
  3. int n=1,sum =0;
  4. while(n<=10){
  5. sum += n++*n++;
  6. }
  7.  
  8. printf("Sum = %d\n",sum);
  9.  
  10. return 0;
  11.  
  12. }
Success #stdin #stdout 0s 2156KB
stdin
Standard input is empty
stdout
Sum = 190