Advertisement
7_2009-2012 Classes #238903

Summation of Values

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.

AI

AI Samenvatting: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Broncode
original-source
/ 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);
 }
 }
Originele reacties (3)
Hersteld van de Wayback Machine