package testpacknm;

import java.util.Scanner;

public class testcnm {
    public static void main(String[] args)                  {
        int x = 44, y = 7;
        int res = -1;
        for (int i = 0; i <= x; i += y) {
            res++;
        }
        System.out.println("The product of " + x + " and " + y + " is " + res);
    }
}

 输出

The product of 44 and 7 is 6

 

相关文章:

  • 2021-08-08
  • 2021-10-11
  • 2022-01-02
  • 2021-06-22
  • 2021-11-20
  • 2021-08-01
  • 2022-02-03
猜你喜欢
  • 2021-05-23
  • 2021-10-01
  • 2022-01-25
  • 2021-12-06
相关资源
相似解决方案