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