All pastes #927265 Raw Edit

Stuff

public text v1 · immutable
·published 2008-03-04 03:55 UTC
rendered paste body
additionForLoop(1, 15);	
public static void additionForLoop(int value, int loop){
		String msg = "";
		int f, f1, f2, i;
		f = 0;
		f1 = 0;
		f2 = value;
		msg += f2 + " ";		
		for(i=0;i<loop;i++){
			f = f1 + f2;
			f1 = f2;
			f2 = f;
			msg += f + " ";		
		}
		JOptionPane.showMessageDialog(null, msg);
	}