create a loop that prints joe biden three times in csharp

To print "Joe Biden" three times using a loop in C#, you can use a for loop as follows:

main.cs
for (int i = 0; i < 3; i++)
{
    Console.WriteLine("Joe Biden");
}
68 chars
5 lines

The for loop runs 3 times and uses Console.WriteLine to print "Joe Biden" to the console each time.

related categories

gistlibby LogSnag