All pastes #728100 Raw Edit

Untitled

public text v1 · immutable
·published 2007-10-06 18:04 UTC
rendered paste body
/* An involved program! Written by Karen Laws. Oct. 2007
This averages the numbers the user types on the screen. */

import java.util.Scanner;

public class Assignment2
{
	public static void main( String args[] )
	{
		double x; 
		
		/* create an object named input, which is supposed to read in data
		   from the keyboard */
		Scanner input;
		input=new Scanner(System.in);
		

		System.out.print("Please enter a number to receive the square root and cubed root of it: ");
		/* read in the data from the keyboard, using the method nextInt() */
		x=input.nextInt( );
		
		double z;
		double y;
		z=sqrt(x);
		y=cbrt(x);
		
		
		System.out.println("|\tz\t|\t|\t5\t|\t|\ty\t|");


	
	}

}