fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int score;
  6. printf("Input score :");
  7. scanf("%d",&score);
  8. if(score>=80)
  9. printf("\nScore = %d \nResult = Grade 4",score);
  10. else if(score>=70)
  11. printf("\nScore = %d \nResult = Grade 3",score);
  12. }
Success #stdin #stdout 0.01s 5284KB
stdin
79
stdout
Input score :
Score = 79  
Result = Grade 3