#include <iostream>
using namespace std
int main() {
int a
cout<<" введи число"
cin>>a
if (a=5) {
cout<<"a=5"
eiso
cout<<"a<>5"
return 0
}
Var x,y: real;
begin
read(x);
y:=(2*x)/(4-x);
writeln('y=',y);
end.
Вторая задача
var k,i,p:integer;
begin
p:=1;
read(k);
for i:=1 to k do
if i mod 2=1 then p:=p*i;
writeln( 'p=',p);
end.
program znan;
var
x:array [1..1000, 1..1000] of real;
m,n,i,j:LongInt;
begin
ReadLn(n,m);
for i:=1 to n do
for j:=1 to m do
begin
Read(x[i,j]);
if x[I,j]>=0 then
x[I,j]:=x[I,j]*5 else
x[I,j]:=x[I,j]/2;
end;
end.
Язык Python в виде ф-ии
def phoneCoubt(iMin, iDay):
tax = 1.84
rez = tax*iMin
if iDay > 5: rez *= 0.8
return rez