Предмет: Информатика, автор: Alika1

ПОМОГИТЕ! Дана сторона равностороннего треугольника. Найти площадь этого треугольника.(в бейсике) Заранее спасибо!!!

Ответы

Автор ответа: PsyhoAssasin
0

Насколько я помню площадь равностороннего треугольника  S=<var>\frac{\sqrt{3}\cdot a^{2}}{4}</var> , где a - сторона равностроннего треугольника.

 

INPUT"Введите сторону треугольника:",A

S=(SQRT(3)*a*a)/4

PRINT"Площадь треугольника: ",S

END

 

 

Если в твоём бейсике нет функции sqrt,то вторую строчку можешь написать так

 S=(3^(1/2)*a*a)/4 

 

   

 

 

 

 

 

 

 

 

Похожие вопросы
Предмет: Английский язык, автор: practical

1.  We wish our exams (be) over.

 

                              A were

                              В are

                              С will be

 

2.  It’s always difficult to get there by bus. I wish I (have) a car.

 

                              A have

                              В had

 

3.   Sue is taking her English test tomorrow, but she doesn’t know grammar well enough. She wishes she (learn) it better.

 

                      A learns

                      В learnt

                      С had learnt

 

4.          — Dad is angry with you.

            -          I'm sorry. I wish I (say) those offensive words.

 

                   A didn’t say

                   В hadn’t said

 

5.    We had a wonderful holiday in France. I wish we (go) there again next summer.

 

               A will go

               В go

               C went

 

6.   Will your sister come to the party? I wish she (meet) some of my friends.

 

              A would meet

              В meet

              С meets

 

7.    Mag’s lost her key. She wished she (not / be) so careless.

 

              A wasn’t

             В hadn’t been

 

8.  I wish I (not / spend) so much money. Now I have to borrow some from my parents.

 

A hadn’t spent

В didn’t spend

 

9.   Terry had a terrible headache yesterday. He wished he (drink) less at he party.

 

                   A drank

                  В had drunk

 

10.  Sarah looks very upset. Her husband wishes she (not / worry) about their son’s troubles.

 

                A didn’t worry

                 В doesn’t worry

                С hadn’t worried

 

11.  I’m hungry. I wish it (be) time for lunch.

 

                A is

                В was

 

12.  The cake is delicious, but I wish there (not / be) so much fat in it.

 

               A is not

              В hadn’t been

              С wasn’t

 

13.  — Are you going to the seaside alone?

       -          I wish my friends (come) to me.

 

                A would come

                В come

Предмет: Қазақ тiлi, автор: allert6