C语言编程高富帅问题,报错

#define _CRT_SECURE_NO_WARNINGS
#include

void main() {
double height = 0.0;
double wealth = 0.0;
int handsome = 0;

printf("请输入身高(cm):");
scanf("%lf", &height);

printf("请输入财富(百万):");
scanf("%lf", &wealth);

printf("请输入是否帅气(1/0):");
scanf("%d", &handsome);

if (height >= 180 && wealth > 10 && handsome = 1) {
    printf("我一定要嫁给他");
}
else if (height >= 180 || wealth > 10 || handsome = 1) {
    printf("嫁吧,比上不足,比下有余");
}
else {
    printf("不嫁");
}
getchar();
getchar();

}

最后提示的结果是

img

handsome = 1改为handsome == 1
==才是判断相等,=是赋值语句