Class Valinsum

java.lang.Object
  |
  +--Valinsum

public class Valinsum
extends java.lang.Object

Ohjelmalla lasketaan välin summa

Version:
1.0, 16.02.2003
Author:
Vesa Lappalainen

Constructor Summary
Valinsum()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static int valin_summa_2(int ylaraja)
           
static int valin_summa_3(int i)
           
static int valin_summa(int ylaraja)
          Lasketaan yhteen luvut 1..ylaraja
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Valinsum

public Valinsum()
Method Detail

valin_summa

public static int valin_summa(int ylaraja)
Lasketaan yhteen luvut 1..ylaraja

Parameters:
ylaraja - summan yläraja
Returns:
summa

valin_summa_2

public static int valin_summa_2(int ylaraja)

valin_summa_3

public static int valin_summa_3(int i)

main

public static void main(java.lang.String[] args)