Skip to content

Instantly share code, notes, and snippets.

@joeyv
Last active December 25, 2015 00:29
Show Gist options
  • Select an option

  • Save joeyv/6888006 to your computer and use it in GitHub Desktop.

Select an option

Save joeyv/6888006 to your computer and use it in GitHub Desktop.
A simple program to pizza
import java.util.Scanner;
public class Pizza
{
public static void main (String[] args)
{
double size;
double cost;
Scanner scan = new Scanner(System.in);
//inport number
size = scan.nextDouble();
//Directions
System.out.print ("\tEnter the diameter of the pizza in inches:");
//Caculate cost
cost = ((.05 * size * size) + .75 + 1);
System.out.println ("\nThe cost of making your pizza is: $" + cost);
}
}
@imryan
Copy link
Copy Markdown

imryan commented Oct 8, 2013

Fucking gay, lol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment