using System.Collections.Generic;
using System.Threading.Tasks;
public static void Main(string[] args)
GetMin(3.5555555M, 3.57777777M);
GetMin(1.45657F, 4.677878F);
Console.WriteLine(WriteLastNumber("6792"));
Console.WriteLine(PrintWeekDays(7));
Console.WriteLine(AnimalType());
static void GetMin(int a, int b)
Console.WriteLine("{0} is smaller then {1}", a, b);
Console.WriteLine("{0} is equal to {1}", b, a);
else Console.WriteLine("{0}is smaller then{1}", b, a);
Console.WriteLine("Please write first number:");
int first = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Please write second number:");
int second = Convert.ToInt32(Console.ReadLine());
static void GetMin(float a, float b)
Console.WriteLine("{0} is smaller then {1}", a, b);
Console.WriteLine("{0} is equal to {1}", a, b);
Console.WriteLine("{0}is smaller then{1}", b, a);
static void GetMin(decimal a, decimal b)
Console.WriteLine("{0} is smaller then {1}", a, b);
Console.WriteLine("{0} is equal to {1}", a, b);
Console.WriteLine("{0}is smaller then{1}", b, a);
static string WriteLastNumber(string number)
int lastNr = Convert.ToInt32(number.Substring(number.Length - 1));
static string AnimalType()
Console.WriteLine("Write an animal:");
string animal = Console.ReadLine().ToLower();
if (animal == "crocodile" || animal == "tortoise" || animal == "snake")
static string PrintWeekDays(int day)
return "Out of range (Write a number from 1 to 7)";