using System.Threading.Tasks;
if (await SayiyiKontrolEt(sayi, 1))
Console.WriteLine("bir");
if (await SayiyiKontrolEt(sayi, 2))
Console.WriteLine("iki");
Console.WriteLine("Program sonlandı!");
async Task<bool> SayiyiKontrolEt(int sayi, int olmasiGereken)
Console.WriteLine("Sayı kontrol ediliyor!");
return sayi == olmasiGereken;