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/05/08 14:41:01

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.