fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int N1, N2;
  7. cout << "This program will find prime numbers between two of your specified number!" << endl << "please enter the first number: ";
  8. cin >> N1;
  9. cout << "please enter the second number: ";
  10. cin >> N2;
  11.  
  12. int x = N1;
  13. while (x < N2)
  14. {
  15. cout << x;
  16. x += 1;
  17. }
  18.  
  19. }
Success #stdin #stdout 0s 3300KB
stdin
10 30
stdout
This program will find prime numbers between two of your specified number!
please enter the first number: please enter the second number: 1011121314151617181920212223242526272829