CS_0008_ForIterarion
// Stop When i==7 and print "Seven Found"
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication8
{
class Program
{
static void Main(string[] args)
{
for (int i=0;i<10;i++)
{
if (i==7)
{
Console.WriteLine("Seven Found");
break;
}
}
Console.ReadLine();
}
}
}
Comments
Post a Comment