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

 

相关文章:

  • 2022-03-07
  • 2021-12-04
  • 2021-08-01
  • 2022-01-07
猜你喜欢
  • 2021-08-27
  • 2021-04-10
  • 2021-10-10
  • 2022-01-14
  • 2021-05-20
相关资源
相似解决方案