我有這樣的代碼,我總是得到一個分割錯誤,我無法正常運行:C代碼,如果條件HW
#include <stdio.h>
void main()
{
int num;
printf("enter the number of words\n");
scanf("%d", num);
if (num > 10) {
printf("a very smart parrot");
}
if (num >= 6 && num <= 10) {
printf ("a smart parrot");
}
if (num > 1 && num <= 5) {
printf ("an average parrot");
}
if (num == 0) {
printf ("a silent parrot");
}
}
'scanf(「%d」,&num);' –