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 Related Posts:Write a C++ program to prompt the user to input her/his name and print the name on the screen.Given the following pseudo code, write a program that executes it. Write a C++ program to prompt the user to input 3 integer values and print these values in forward and reversed order.Write a C++ program that prompts the user to input three integer values and find the greatest value of the three values.Write five C++ statements to print the asterisk pattern as shown below.