//based on syntax 1
#include<iostream>
using namespace std;
// function to check greater number
void checkGreater()
{
int i, j;
i=2;j=5;
if(i>j)
goto iGreater;
else
goto jGreater;
iGreater:
cout<<i<<" is greater";
return;
jGreater:
cout<<j<<" is greater";
}
// main method to test above function
int main()
{
checkGreater();
return 0;
}