All pastes #811448 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-12-10 22:38 UTC
rendered paste body
import javax.swing.JOptionPane;
import java.text.*;
public class ProgramVfive1
{
	public static void main(String Args[])
	{
		String start;
		String end;
		int c;
		int d;
		start=JOptionPane.showInputDialog("Please enter the starting value:");
		c=Integer.parseInt(start);

		end=JOptionPane.showInputDialog("Please enter the ending value:");
		d=Integer.parseInt(end);

		DecimalFormat twoDigits=new DecimalFormat(".00");


			String g="";
			for (c=c; c<=d; c++)
			{
			g=g + twoDigits.format(Math.sqrt(c)) + "" + (c*c*c) + "" + twoDigits.format(Math.exp(c)) + "\n";
			}

		JOptionPane.showMessageDialog(null,g);

	}
}