Răspuns :
var a,b:integer;sunt:boolean;begin readln(a,b);if (a=0)or(b=0) then writeln('Numerele sunt nule');//Sunt de acels sensif (a>0)and(b>0) then sunt:=true;if (b<0)and(a<0) then sunt:=true;//sunt de sens diferitif (a>0)and(b<0) then sunt:=false;if (a<0)and(b>0) then sunt:=false;//Raspunsif sunt=true then writeln('Sunt de acelas sens'); if sunt=false then writeln('Sunt de sens diferit')
end.
end.
#include <iostream>
using namespace std;
int a,b;
int main()
{
cin >> a >> b;
if(((a > 0)&&(b > 0))||((a < 0)&&(b < 0))) cout <<"da";
else cout <<"nu";
return 0;
}
using namespace std;
int a,b;
int main()
{
cin >> a >> b;
if(((a > 0)&&(b > 0))||((a < 0)&&(b < 0))) cout <<"da";
else cout <<"nu";
return 0;
}