1)#include <iostream>
using namespace std;
int main(){
double x,y,z;
cin>>x;
cin>>y;
if((y==-1) or (x==-34)){
return 33;
}
z=(x+y)/(y+1)-(x*y-12)/(34+x);
cout<<z;
cin.get();
cin.get();
return 0;
}
2)#include <iostream>
using namespace std;
int main(){
int x,y,a,b,c;
double d;
cin>>x;
cin>>y;
a=x+y;
cout<<x<<"+"<<y<<"="<<a<<"\n";
b=x-y;
cout<<x<<"-"<<y<<"="<<b<<"\n";
c=x*y;
cout<<x<<"*"<<y<<"="<<c<<"\n";
if(y==0){
cout<<"Can't divide by zero";
cin.get();
cin.get();
return 66;
}
d=double(x)/double(y);
cout<<x<<"/"<<y<<"="<<d;
cin.get();
cin.get();
return 0;
<span>}</span>
program odin; var a,b,sum,razn,proizv,chast:real;
begin
writeln('vvedite a');
readln (a);
writeln('vvedite b');
readln(b);
if (a<>0) and (b<>0) then begin writeln('summa=',a+b:0:0);
writeln('raznost=',a-b:0:0);
writeln('proizvedenie=',a*b:0:0);
writeln('chastnoe=',a/b:0:1);
end
else writeln ('chiso ravno 0');
end.
............................................
Program n1;
var a,v,p,s: real;
begin
write('введите рост: ');
readln(a);
write('введите возраст: ');
readln(v);
write('введите признак(1 - мужчина, 0 - женщина): ');
readln(p);
if p=1 then s:=(3*a-450+v)*0.25+45;
if p=0 then s:=(3*a-450+v)*0.225+40.5;
writeln('идеальный вес: ',s);
end.