//************************************** // Name: Summation of Values // Description:The code will compute the summation of values. If uses for loop statements. Great for beginners in Java programming. If you like this code please vote for it or leave a comments and suggestions. Thank you so much and God Bless :-D Jake Rodriguez Pomperada. // By: Jake Rodriguez Pomperada (from psc cd) // // // Inputs:None // // Returns:Displays the computed summation values. // //Assumes:None // //Side Effects:None //************************************** / summation of values in java // summa.java // Creadted By: Jake Rodriguez Pomperada // Date: March 27, 2007 4:05 PM // Email Add: jakerpomperada@yahoo.com class summa { public static void main(String args[]) { int a=0; for (int b=1; b<= 100; b++) { a+=b; } System.out.print("The sum of 1 to 100 is " + a); } }