I tried to search for other threads to answer my question but couldnt come up with anything that I could think of to describe what I was looking for well. My assignment is this:

Write an application that shows the sum of 1 to n for every n from 1 to 50. That is, the program prints 1 (the sum of 1 alone), 3 (the sum of 1 and 2), 6 (the sum of 1, 2, and 3), 10 (the sum of 1, 2, 3, and 4), and so on. This is what I have so far but I cant seem to figure it out. I keep getting different ways to get the total of adding the numbers 1 through 50 (1276).

```
// EverySum.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int n = 1;
int count;
for(count = 1; count <= 50; ++count)
n = n + count;
cout<<n<<endl;
getche();
}
```