samplepro2 - { public static void main(String args) { int...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.util.*; import java.lang.*; import java.io.*; import java.text.*; import java.math.*; import java.text.DecimalFormat; i //Jeremy Debruce //Jan.12.2009 //Sample Program 2 public class samplepro2
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { public static void main(String args) { int num,sum; num = 1; sum = 0; s while(num<=100) { sum= sum + num; num= num + 1; n } System.out.println("The sum is => "+sum); } }...
View Full Document

Ask a homework question - tutors are online