import java.util.Scanner;
// Made by Mr. Gizdich
public class Tutorial
{
/*
* Made by John Gizdich
*/
public static void main(String[] args)
{
Scanner kb = new Scanner(System.in);
double a = 7, c;
int b;
System.out.println("How many ticket(s) will you buy? ");
b = kb.nextDouble();
c = b * a;
System.out.println("You want " + b + " ticket(s). The total cost will be $" + c);
}
}
No comments:
Post a Comment