fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a;
  6. cin >> a;
  7. if(a >= 0 && a <= 10){
  8. cout << "The score is valid";
  9. }
  10. else cout << "The score is not valid";
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5288KB
stdin
4
stdout
The score is valid