Koordinatalri (X,y) bo’lgan nuqta koordinata choragining ikkinchisida yoki uchunchisida yotadi


Download 30.62 Kb.
Sana15.06.2023
Hajmi30.62 Kb.
#1478783
Bog'liq
misol 4


Boolean27. x, у sonlar berilgan. Jumlani rostlikka tekshiring: “Koordinatalri (x,y) bo’lgan nuqta koordinata choragining ikkinchisida yoki uchunchisida yotadi".

#include


using namespace std;


int main()


{
int x,y;
cout<<"x=";
cin>>x;
cout<<"y=";
cin>>y;
cout<< (x<0 && y>0) || (x<0 && y<0);

return 0;


}



Natija:

Download 30.62 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling