cleancode_game_0

mail@pastecode.io avatar
unknown
csharp
23 days ago
539 B
3
Indexable
Never
using System;

public class Program
{
    public static void Main(string[] args)
    {
        // User data
        string name = "John";
        int age = 30;
        string country = "USA";

        // Check if user is eligible
        bool isEligible = age >= 18 && age <= 65 && country == "USA";

        // Print result
        if (isEligible)
        {
            Console.WriteLine("User is eligible");
        }
        else
        {
            Console.WriteLine("User is not eligible");
        }
    }
}