COMPUTER SCIENCE & INFORMATION TECHNOLOGY
Sunday, 3 May 2015
//This program illustrates the working of goto
//This program illustrates the working of goto
using System;
namespace ProfTyagi
{
class demogoto
{
static void Main(string[] args)
{
int a = 0;
start:
Console.WriteLine(a);
a++;
if (a < 5)
goto start;
}
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment