题解 | #求最小公倍数#
求最小公倍数
https://www.nowcoder.com/practice/22948c2cad484e0291350abad86136c3
import java.util.*; public class Main { public static void main(String[] args) { Scanner fzhinput = new Scanner(System.in); int asz = fzhinput.nextInt(); int bsz = fzhinput.nextInt(); for(int i=1;i<=asz*bsz;i++){ if(i%asz==0&&i%bsz==0){ System.out.println(i); break; } } } }