package com.example.lib.GradedAssignment;
import java.util.Scanner;
public class Question5 {
public static int computeProduct(int num1, int num2)
{
int product = num1 * num2;
return product;
}
public static void main(String [] args)
{
Scanner sc1 = new Scanner(System.in);
System.out.print("Enter a number between 10 to 50(inclusive) here: ");
int num1 = sc1.nextInt();
System.out.print("Enter a second number between 10 to 50(inclusive) here: ");
int num2 = sc1.nextInt();
if( num1 >= 10 && num1 <= 50 || num2 >= 10 && num2 <=50)
{
int product1 = computeProduct(num1, num2);
System.out.println("The product of the two numbers are: " + product1);
}
else
System.out.println("Number is not in range, please try again.");
}
}