public class RegistrationApp
public static void Main()
Console.Write("Please input the amout of persons: ");
int numberOfPersons = int.Parse(Console.ReadLine());
string[] names = new string[numberOfPersons];
int[] ages = new int[numberOfPersons];
for (int i = 0; i < numberOfPersons; i++)
Console.Write("Enter name for person " + (i + 1) + ": ");
names[i] = Console.ReadLine();
Console.Write("Enter age for person " + (i + 1) + ": ");
ages[i] = int.Parse(Console.ReadLine());
Console.WriteLine("\n Displaying all entries:");
for (int i = 0; i < numberOfPersons; i++)
Console.WriteLine(names[i] + " - " + ages[i + "years old" ]);