public class Solution { public static void main(String[] args) { int x = 11, y = 7; int res = 1; for (int i = 1; i <= y; i++) res = i * x; System.out.println("The product of " + x + " and " + y + " is " + res); } } OUTPUT: The product of 11 and 7 is 77