Samplepro3 - public class samplepro3 static int s,f,n=1,d public static void main(String args for(d=2;d<=10;d s = n d n=n 3

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 3
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 class samplepro3 { static int s,f,n=1,d; public static void main(String args) { for(d=2;d<=10;d++) { s = n / d; n=n+3; System.out.print(s+ " "); } } }...
View Full Document

This note was uploaded on 06/17/2011 for the course COMP 2302 taught by Professor Staff during the Spring '11 term at Kennesaw.

Ask a homework question - tutors are online