Program to add 10 integer numbers from 1 to 10 using goto statement

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int x=1,sum=0;
const int n=10;
label:sum=sum+x;
x++;
if(x<=n)
    goto label;
cout<<"TOTAL is "<<sum;
getch();
}