×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Vasilii Vasilev
Added: May 2, 2014 1:40 PM
Views: 12
Tags: double for
  1. int limit = 10, sum = 0;
  2.         for (int i = 0, j = 0; i <= limit; i++, j++) {
  3.             sum += i * j;
  4.             System.out.println(i + " " + j + " " + sum);
  5.  
  6.         }