1-labaratoriya ishi Otaboyev Lochinbek


Download 138.46 Kb.
Sana05.04.2023
Hajmi138.46 Kb.
#1274475
Bog'liq
1-labaratoriya-WPS Office


1-labaratoriya ishi
Otaboyev Lochinbek
Algaritmlarni loyihalash

#include


#include
using namespace std;

int main()


{
int a,b,c;
double d,x1, x2;
cin>>a>>b>>c;
d=sqrt(b*b-4*a*c);
cout<if(d<0)
{cout<<"yechimga ega emas";}
if(d>0)
{
x1=(-b-(d))/(2*a);
x2=(-b+(d))/(2*a);

cout<
}}

Kod sxemasi



Download 138.46 Kb.

Do'stlaringiz bilan baham:




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