Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class cooking {
- public static void main(String[] args) {
- Scanner input = new Scanner(System.in);
- double sugar = 1.5/48;
- double butter = 1.0/48;
- double flour = 2.75/48;
- System.out.println("How many Cookies?: ");
- int cookies = input.nextInt();
- System.out.println("You will need: \n" + (sugar*cookies) +" cup of sugar \n" + (butter*cookies) + " cup of butter \n" + (flour*cookies) + " cup of flour");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement