Write a program that will ask the user to input n positive numbers. The program will terminate if one of those number is not positive. Josh July 30, 2017 cpp exercise #include <iostream> using namespace std; int main(){ int n=0; for(;;){ cout<<"Enter a positive integer : "; cin >>n; if(n<0){ cout<<"You entered a negative number. program exiting ..."<<endl; break; } } return 0; } Share: Email ThisBlogThis!Share to XShare to Facebook