Check03D - b integer = Integer.parseInt(buffer...

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

View Full Document Right Arrow Icon
import type.lib.ToolBox; import java.util.Scanner; i public class Check03D { public static void main(String[] args) { String buffer; int integer; i Scanner input = new Scanner(; S System.out.print("Enter an integer . .. "); buffer = input.nextLine();
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: b integer = Integer.parseInt(buffer); System.out.printf("%d! = %,.0f%n", integer, ToolBox.factorial(integer)); System.out.printf("Cubic Root of %d = %,.0f%n", integer, Math.cbrt(integer)); } }...
View Full Document

This note was uploaded on 09/16/2011 for the course CSE CSE 1020 taught by Professor Burton,ma during the Fall '10 term at York University.

Ask a homework question - tutors are online