I compressed your code a bit, to get rid of a lot of repetitions, such as in when the c...
The program does not print results@immadogewow
I found that the first number to be printed was 1260, which is more than your ending ...
system("pause") and system("cls") or system("clear")@jmilby42
Here is using both, in a program I threw together. I used Dev C++ v5.6.2.
Here is a way to use gotoXY() function to do what you were after.
// Triangle.cpp :...
Wow, that sounds great.