n=6 m =8 x=max(n,m) for i=x to m*n if mod (i,m)=0 and mod (i,n)=0 y1=1 str(m*n/y
来源:学生作业帮助网 编辑:作业帮 时间:2024/10/03 06:11:25
xPNP~ĆTҜlGLӄKtM5xkMKQ DFN}ON|:`6U3x}f4lCbl 1oj4JlpW";-i>TΗW3@#\w/2dB.~;=UCDHBϧlOgS:Z{ :~]LyNX,O.YS8IIJM*$m+~ѿK,˶V%^BжTCYX
n=6 m =8 x=max(n,m) for i=x to m*n if mod (i,m)=0 and mod (i,n)=0 y1=1 str(m*n/y
n=6 m =8 x=max(n,m) for i=x to m*n if mod (i,m)=0 and mod (i,n)=0 y1=1 str(m*n/y
n=6 m =8 x=max(n,m) for i=x to m*n if mod (i,m)=0 and mod (i,n)=0 y1=1 str(m*n/y
分析:上述语句的意思应该是:
1、X=8;
2、从8到48做循环,如果数被6且被8整除,则Y=1;
3、打印M*N/Y的值;
4、如果打印语句包括在循环中,那么答案是24,48.