#include <iostream>
int main()
{
unsignedshort top_num = 0;
std::cout << "What number to count to? ";
std::cin >> top_num;
unsignedlonglong sum = 0;
unsignedlonglong count_num = 0;
// add up the all the numbers from 0 to top_num, inclusive
while (count_num <= top_num)
{
sum += count_num;
count_num++;
}
std::cout << "The total is: " << sum << '\n';
}