#include #include void main(void) { int num, sum=0; printf("Insert a number:"); scanf("%d",&num); while(num>0) { sum=sum+num; num--; } printf("The sum of the numbers is:%d \n",sum); getch(); }