multiply two numbers using + opertor

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
原文地址:https://www.cnblogs.com/sea-stream/p/12013048.html