#include <iostream> //For cout and cin
#include <conio.h> //for getch
#include <iomanip> //display output more neatly/organized
usingnamespace std;
int main()
{
//Variable
int positiveInteger; //number input from user
int num = 1; //num starts with 1
int sum; // Sum of all integers from 1 to number
//Ask user for a positive integer
cout << "Please enter a positive integer value: " << endl;
cin >> positiveInteger;
//Formula for sum calcuation
sum = positiveInteger * (positiveInteger +1) / 2;
//Find sum of all the number
while (positiveInteger <= sum || positiveInteger > 0)
{
cout << "" << endl;
num++;
cout <<
}
_getch(); // hold the screen
}