Dasturlash 1 fanidan Labaratoriya ishi-2
Mavzu:ALGORITMLASH VA DASTURLASHNING ASOSIY TUSHUNCHALAR
VARIANT-6 711-20 guruh talabasi Shermuhammadov Farhodjon
Masala sharti;
To’g’ri burchakli uchburchakning gipotenuzasi va kateti berilgan bo’lsa, ikkinchi katet va ichki chizilgan aylananing radiusi hisoblansin.
&
Boshlash
Natija;
1.#include
a , c
2.#include
3.using namespace std;
4.main()
5.{float a,b,c,r;
6.cout<<"a=";
b=
r=
7. cin>>a;
8.cout<<"c=";
9.cin>>c;
10.b=sqrt(pow(c,2)-pow(a,2));
11.cout<<"b=";
12.cout<
13.r=(a+b-c)/2;
b , r
14.cout<<"r=";
15.cout<
Tamom
Do'stlaringiz bilan baham: |