Program Z1;
Var n,i,s: real;
Begin
write ('n=');
read (n);
S:=0;
i:=3;
while i<=n do
Begin
i:=i+4;
S:=S+i;
End;
write ('S=',S);
End.
Программа (без проверки существования треугольника):
#include <iostream>
#include <cmath>
using namespace std;
int main() {
double a,b,c,p;
double p2, s;
cin >> a >> b >> c;
p = a+b+c;
p2 = p/2.0;
s = sqrt(p2*(p2-a)*(p2-b)*(p2-c));
cout << "p = " << p << " s = " << s;
return 0;
}
Пример 1:
3 4 5
p = 12 s = 6
Пример 2:
1 1 1
p = 3 s = 0.433013
Это сложно.
Но можно решить.
Через 5 мин отвечу.
Ну всё пока
Program Archi;
uses crt;
var
x:real;
begin
writeln('*** alphaues is thinking... ***');
writeln('*** OK ***');
writeln();
write('Введите x: ');
readln(x);
writeln('При х=',x,'');
writeln('3sin(sqrt(3))+0,35x-3,8 = ',3*sin(sqrt(3))+0.35*x-3.8:0:3);
end.
Print(sorted("Sam is a multi-file text editor based on structural regular expressions It was originally designed in the early 1980s at Bell Labs by Rob Pike with the help of Ken Thompson and other Unix developers for the Blit windowing terminal running on Unix it was later ported to other systems Sam follows a classical modular Unix aesthetic It is internally simple its power leveraged by the composability of a small command language and extensibility through shell integration".split())[39])