make five randomly inputted characters fall in line using code
using System;
using System.Collections.Generic;
namespace App
{
class Program
{
public static void Main()
{
char[] characters = new char[5];
for (int i = 0; i < 5; i++)
{
characters[i] = Console.ReadLine()[0];
}
for (int i = 0; i < 5; i++)
{
Console.Write(characters[i]+" ");
}
Console.ReadLine();
}
}
}
Comments
Leave a comment