using System;
class FOR
{
private int fors;
private int forson;
public bool Drive(int k)
{
forson = fors;
fors += 1;
return (fors < k);
Console.WriteLine("Car is moving");
}
}
class Program
{
static void Main()
{
Car myCar = new Car();
myCar.brand = "Toyota";
myCar.Drive();
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: