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 = 50)
  9. printf("Prize 500 Baht \n");
  10. else if (score = 40)
  11. printf("Prize 420 Baht\n");
  12. else if (score = 30)
  13. printf"Prize 350 Baht\n");
  14. else if (score = 20)
  15. printf("Prize 250 Baht\n");
  16. else if (score = 10)
  17. printf("Prize 160 Baht\n");
  18. getch ();
  19. return (0);
  20. }
Success #stdin #stdout 0.03s 25528KB
stdin
Standard input is empty
stdout
include <stdio.h>
#include <conio.h>
main()
{
   int score;
   printf("Enter your score : ");
   scanf ("%d", &score);
   if (score = 50)
   printf("Prize 500 Baht \n");
   else if (score = 40)
   printf("Prize 420 Baht\n");
   else if (score = 30)
   printf"Prize 350 Baht\n");
   else if (score = 20)
   printf("Prize 250 Baht\n");
   else if (score = 10)
   printf("Prize 160 Baht\n");
getch ();
return (0);
}