Lecture 139
// Loop GoTo
#include <iostream>
#include <conio.h>
using namespace std;
main ()
{
int n;
char ch;
cout<<"An ASCII Table Program: \n";
n=1;
Loop1: //Label
ch=n;
cout<<n<<" = "<<ch<<"\t\t";
n++;
if(n==256)
goto
Loop2;
goto Loop1;
Loop2:
getch();
return 0;
}
Output: