fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int score;
  5.  
  6. printf("กรอกคะแนน: ");
  7. scanf("%d", &score);
  8.  
  9. if(score >= 50) {
  10. printf("ผ่าน\n");
  11. }
  12.  
  13. printf("จบโปรแกรม");
  14. return 0;
  15. }
Success #stdin #stdout 0.03s 26024KB
stdin
Standard input is empty
stdout
#include <stdio.h>

int main() {
    int score;

    printf("กรอกคะแนน: ");
    scanf("%d", &score);

    if(score >= 50) {
        printf("ผ่าน\n");
    }

    printf("จบโปรแกรม");
    return 0;
}