Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class RevisedFootballProject {
- /**
- * @param args
- */
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- Scanner input= new Scanner(System.in);
- System.out.print("What is the down? ");
- int down = input.nextInt();
- System.out.print("What is the yard line? ");
- int yardline = input.nextInt();
- System.out.print("Number of yards scored this play: ");
- int yardnumber = input.nextInt();
- int currentyardline = yardline + yardnumber;
- int yardstonext = 10;
- yardstonext = ;
- if (yardstonext < 1)
- {
- yardstonext = yardstonext * -1;
- down = 1;
- }
- if (yardstonext < 10)
- {
- down++;
- }
- System.out.println(+ down + " down and " + yardstonext + " to go. ");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement