ulvis.paste.net

Paste Search Dynamic
Recent pastes
Enter an integer
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int number;
  7.     cout << "Enter an integer: ";
  8.     cin >> number;
  9.  
  10.     // checks if the number is positive
  11.     if ( number > 0)
  12.     {
  13.         cout << "You entered a positive integer: " << number << endl;
  14.     }
  15.  
  16.     cout << "This statement is always executed.";
  17.     return 0;
  18.  
  19. }
Parsed in 0.004 seconds