Quick actions

cmd+k|ctrl+k

Navigation

Languages

Task02

Snippet info

Language

Csharp

Visibility

public

Author

okopo4ok

Created

2023-09-04T20:38:09.715075Z

Updated

2023-09-04T20:38:09.715075Z

using System;
using Task02;

namespace Task01
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Person p1 = new Person();
            p1.SetName("Vanja");
            p1.SetAge(18);
            p1.SetLenght(183.9);
            p1.SetWeight(84);
            p1.SetSocial_Points(-999);

            Person p2 = new Person();
            //p2.SetName("Vovan");
            //p2.SetAge(19);
            //p2.SetLenght(178.3);
            //p2.SetWeight(90);
            //p2.SetSocial_Points(911);

            Person p3 = new Person();
            p3.SetName("Ruslan");
            p3.SetAge(17);
            p3.SetLenght(-999);
            p3.SetWeight(76);
            p3.SetSocial_Points(666);

            Console.WriteLine(p1.ToText());
            Console.WriteLine(p2.ToText());
            Console.WriteLine(p3.ToText());
        }
    }
}
INFO