import java.util.Scanner;
public class Assignment3 {
public static void main(String[] args) {
//PART 1
// 1a) 10 9 8 7 6 5 4 3 2
// 1b) 5 15
// 2. import java.util.Scanner;
// public static void main(String[] args) {
//Scanner scan = new Scanner(System.in);
//System.out.println("Enter something: ");
//String str = scan.nextLine();
// for (int i = (str.length() - 1); i >= 0; i--) {
// System.out.print(str.charAt(i));
// }
//}
//}
//PART 2
int num1, num2;
Scanner scan = new Scanner(System.in);
System.out.print("Enter the first Positive Integer: ");
num1 = scan.nextInt();
while (num1 <= 0)
{
System.out.print("Positive number please. Try again.");
num1 = scan.nextInt();
}
System.out.print("Enter the second Positive Integer: ");
num2 = scan.nextInt();
while (num2 <= 0)
{
System.out.print("Positive number please. Try again.");
num2 = scan.nextInt();
}
System.out.print("\nnumbers you chose (" + num1 + ", " + num2 +
")");
/*-------------------------------------------------------------------------
// AUTHOR: Nicholas Recore
// FILENAME: Assignment3.java
// SPECIFICATION: Finds the GCD of two integers
// FOR: CSE 110- homework #3
// TIME SPENT: how long it took you to complete the assignment
//----------------------------------------------------------------------*/