using System;
namespace JobApplication
{
class program
{
static void Main(string[] args)
{
Console.WriteLine("Welcome to our job application app! First of all, we need to know your age. (Entering a non-number will make app crash)");
int Age = Convert.ToInt32(Console.ReadLine());
if (Age >= 18)
{
Random random = new Random();
int user = random.Next(1, 10000000);
Console.WriteLine("Great! Now, we need to get that where do you live.");
string? Country = Console.ReadLine();
Console.WriteLine("Okay.. Whats your name? ");
string? Name = Console.ReadLine();
Console.WriteLine("Excellent. Last thing, whats your hobby?");
string? Hobby = Console.ReadLine();
Console.WriteLine("User " + user + " properties: ");
Console.WriteLine("Age: " + Age);
Console.WriteLine("Name: " + Name);
Console.WriteLine("Country: " + Country);
Console.WriteLine("Hobby: " + Hobby);
Console.WriteLine("Press any button to exit the program.");
Console.ReadKey();
}
else
{
Console.WriteLine("Sorry, but you're under 18.");
Console.WriteLine("Press any button to exit the program.");
Console.ReadKey();
}
}
}
}