for (int i = 0; i < 10; i++)
{
Console.WriteLine("Value of i: {0}", i);
}
//int i = 0 -- Making variable i
//i <=10 -- Making a condition for the loop to keep going
//i++ -- Increasing i by 1
for(int i = 0; i <= 10; i++)
{
Console.Write(i+1);
}
/*
Output:
12345678910
*/
for (int i = 0; i < 4; i++) {
print()
}
let main() =
for i = 1 to 20 do
printfn "i: %i" i
main()
let main() =
for i = 20 downto 1 do
printfn "i: %i" i
main()