Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package notes2;
- /**
- *
- * @author similyhill
- */
- import java.util.Scanner;
- public class notes2 {
- public static void main (String[] args) {
- Scanner getSeconds = new Scanner(System.in);
- //we wnat to promt the user to enter info into the system
- System.out.print("enter an interger for seconds ---> "); //next we need to take in that int and store it into a variable.
- int num = getSeconds.nextInt(); //this take the integer and stores it into
- System.out.println("The number that you entered is " + num);//tells the user what the number is that they entered
- int minutes = 60;
- System.out.println(" We will divide " + minutes + "seconds");
- System.out.println(num / minutes + " Minutes in that amount of Seconds ");
- //close out your scanner
- getSeconds.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement