Page 954 - เตรียมสอบครูผู้ช่วยคอมพิวเตอร์_compressed
P. 954
default: printf("0");
}
}
ก. 5 ข. 12345
ค. 5 4 3 2 1 0 ง. 54321
ี
่
็
้
8. ข้อใดเปนผลรันของโปรแกรมตอไปน
#include <stdio.h>
main(){
int a=20;
int b=6;
if((a>0) && (b>a)){
printf(“Correct !”);
}}
ก. Correct ! ข. 20 > 6
ค. 6 < 20 ง. 20 & 6
9. ข้อใดเขียนผิด
ก. if(score < 0 || score > 100)
printf("Enter score 0 - 100 \n");
else if(score >= 80)
ข. if (score>=50)
ค. if (number>=10)
net=number+(number*2)/10;
else;
net=number;
ง. if (score>=80)
grade='4';
else if (score>=60)
grade='3';
11