Guest User

Untitled

a guest
Jun 24th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. package project;
  2. import java.util.Scanner;
  3.  
  4. public class MyClass2 {
  5.  
  6. public static void main(String[] args) {
  7. Scanner scan = new Scanner (System.in);
  8. System.out.println("Type a integer");
  9. int x = scan.nextInt();
  10. // convert int to double here using x and made it as x1
  11. System.out.println("Type another integer");
  12. int y = scan.nextInt();
  13. // convert int to double here using y and made it as y1
  14. }
  15.  
  16. }
Add Comment
Please, Sign In to add comment