fork download
  1. #include <stdio.h>
  2. #include <conio.h>
  3. main()
  4. {
  5. int score;
  6. printf("Enter your score : ");
  7. scanf ("%d", &score);
  8. if (score>= 100)
  9. printf("Prize 500 Baht \n");
  10. else if (score>= 90)
  11. printf("Prize 400 Baht\n");
  12. else if (score>= 80)
  13. printf"Prize 300 Baht\n");
  14. else if (score>= 70)
  15. printf("Prize 200 Baht\n");
  16. else if (score>= 60)
  17. printf("Prize 100 Baht\n");
  18. getch ();
  19. return (0);
  20. }
Success #stdin #stdout 0.02s 25304KB
stdin
Standard input is empty
stdout
#include <stdio.h>
#include <conio.h>
main()
{
   int score;
   printf("Enter your score : ");
   scanf ("%d", &score);
   if (score>= 100)
   printf("Prize 500 Baht \n");
   else if (score>= 90)
   printf("Prize 400 Baht\n");
   else if (score>= 80)
   printf"Prize 300 Baht\n");
   else if (score>= 70)
   printf("Prize 200 Baht\n");
   else if (score>= 60)
   printf("Prize 100 Baht\n");
getch ();
return (0);
}