moscow053988
?>

Составьте программу(паскаль) для нахождения площади и периметра треугольника

Информатика

Ответы

iriska-669
Program triangle; uses crt; var a,b,c,p,s: real; begin clrscr; write('a = '); readln(a); write('b = '); readln(b); write('c = '); readln(c); writeln; p: =a+b+c; writeln('p =  ', p: 0: 3); p: =p/2; s: = sqrt(p*(p-a)*(p-b)*(p-c)); writeln('s =  ', s: 0: 3); readln; end.
banketvoshod

dim a(12), b(12), c(12)

input "введите размерность массивов а и в - m= ", m 

print "введите элементы массивов а и в: "

for i=1 to m

  input a(i), b(i) 

next i

s=0

for i = 1 to m

  c(i)= a(i) + b(m-i+1)

  s= s+c(i)

next i 

print "массив а: " 

for i = 1 to m

    print a(i);

next   i 

print

print "массив b: " 

for i = 1 to m

    print b(i);

next   i 

print

print "массив c: " 

for i = 1 to m

    print c(i);

next   i 

print

print "сумма элементов массива с ="; s

 

 

Людмила Анна

PL/SQL is a modern, block-structured programming language. It provides several features that make developing powerful database applications very convenient. For example, PL/SQL provides procedural constructs, such as loops and conditional statements, that are not available in standard SQL.

You can directly enter SQL data manipulation language (DML) statements inside PL/SQL blocks, and you can use procedures supplied by Oracle to perform data definition language (DDL) statements.

PL/SQL code runs on the server, so using PL/SQL lets you centralize significant parts of your database applications for increased maintainability and security. It also enables you to achieve a significant reduction of network overhead in client/server applications.

Ответить на вопрос

Поделитесь своими знаниями, ответьте на вопрос:

Составьте программу(паскаль) для нахождения площади и периметра треугольника
Ваше имя (никнейм)*
Email*
Комментарий*

Популярные вопросы в разделе

marinarodina90
Vladimir-Tamara1359
zuzazuza61
YelenaZOLTANOVICh105
lolydragon
Avdimov5
Кулагина_Владимир1179
jeep75
vera-spicina
Голубева1440
Aleksei1968
misstimarina2016
РостиславовичЮлия1147
gallush9
sveta073120