請(qǐng)問大佬這個(gè)程序哪里有錯(cuò)誤?
請(qǐng)問大佬這個(gè)程序哪里有錯(cuò)誤?
#include <stdio.h>
int main()
{
? ? int height = 175;? ?//身高為175cm
? ? int money = 1500000;? //銀行存款為150萬
? ?if(height >= 180&&double money>= 1000000)
? ?{
? ? ? ?printf("%s\n","符合條件");
? ?}
? ?else
? ?{
? ? ? ?printf("%s\n","不符和條件");
? ?}
? ?return 0;
}
2019-01-02
首先double不需要,然后直接把符合條件和不符合條件替換%s:prntf("符合條件\n");這樣
2019-01-08
#include <stdio.h>
int main()
{
? ? int height = 175;? ?//身高為175cm
? ? int money = 1500000;? //銀行存款為150萬
? ?if( height >= 180&& money>= 1000000)
? ?{
? ? ? ?printf("符合條件\n");
? ?}
? ?else
? ?{
? ? ? ?printf("不符合條件\n");
? ?}
? ?return 0;
}
2019-01-02
定義的類型發(fā)生錯(cuò)誤