简单的C++程序,error:表达式为不可修饰的左值??高手请赐教!
#include<iostream>using namespace std;
main()
{
int x,y;
int minfun=0,max=0,min=0;
cout<<"输入两个正整数:";
cin>>x>>y;
if(x<=0||y<=0)
return;
if(x>=y)
min=y,max=x;
else
min=x,max=y;
for(int i=1;i<=min;i++)
{
if((min%i=0)&&(max%i=0))//表达式为不可修饰的左值??
minfun=x*y/i;
}
cout<<"最小公倍数为"<<minfun;
}