[-]


Download 223.81 Kb.
bet1/2
Sana10.12.2020
Hajmi223.81 Kb.
#163540
  1   2
Bog'liq
DUVP-1




O‘ZBEKISTON RESPUBLIKASI AXBOROT TEXNOLOGIYALARI VA KOMMUNIKATSIYALARINI RIVOJLANTIRISH VAZIRLIGI

MUHAMMAD AL-XORAZMIY NOMIDAGI TOSHKENT AXBOROT TEXNOLOGIYALARI UNIVERSITETI
DUVP” fanidan

1-topshiriq


Bajardi: Dexqonov Abduazim

Guruh: 316-18




Toshkent 2020


1-topshiriq
28.


Dastur C# tilida

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;


namespace duvp_1

{

class Program



{

static void Main(string[] args)

{

double x = 0,y = 0;


x = Convert.ToDouble(Console.ReadLine());
if (x < 0.5) y = 0.5 * Math.Pow(x, 5) / Math.Pow((x + 0.5), 2);
if (x >= 0.5) y = Math.Sqrt(Math.Pow(x, 2) + 3.5 * Math.Pow(x, 3));
Console.WriteLine(y);
Console.ReadKey();

}

}



}



Download 223.81 Kb.

Do'stlaringiz bilan baham:
  1   2




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling