Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package project;
- import java.util.Scanner;
- public class MyClass2 {
- public static void main(String[] args) {
- Scanner scan = new Scanner (System.in);
- System.out.println("Type a integer");
- int x = scan.nextInt();
- // convert int to double here using x and made it as x1
- System.out.println("Type another integer");
- int y = scan.nextInt();
- // convert int to double here using y and made it as y1
- }
- }
Add Comment
Please, Sign In to add comment