Answer: for is an
iteration statement that executes the entire block repeatedly like
do statement without using any other statements like
while.
Example,
for (int i = 1; i < 9; i++)
{
Console.WriteLine(i); // This will print from 1 to 8
}
Asked In: Spotted While Learning |
Alert Moderator