fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. cout << "Enter an Interval...\n";
  7. int x{};
  8. cin >> x;
  9.  
  10.  
  11. if (x <= 0)
  12. cout << "Thats either a zero or a negative number";
  13. else
  14. cout << "You Entered " << x;
  15. return 0;
  16.  
  17. }
Success #stdin #stdout 0.01s 5288KB
stdin
30
stdout
Enter an Interval...
You Entered 30