Предмет: Информатика, автор: KetrinPetrovaz

Напишите программу, которая для заданной точки с координатами (х,у) определяет, где она расположена: на какой оси или в какой координатной четверти

Ответы

Автор ответа: cccc1808
3
Pascal

 var   
x,y : integer;    
begin 
readln (x,y); 
if (x=0) or (y=0)
then   
begin   
if x = 0 then
     writeln ('Точка лежит на оси y');   
if y = 0 then
     writeln ('Точка лежит на оси x')'   
end 
else 
 begin 
   if (x>0) and (y>0) then
     writeln ('Точка находится в первой четверти'); 
   if (x<0) and (y>0) then
     writeln ('Точка находится во второй четверти'); 
   if (x<0) and (y<0) then
     writeln ('Точка находится в третей четверти'); 
   if (x>0) and (y<0) then
     writeln ('Точка находится в четвертой четверти');
  end; 
end.
Похожие вопросы
Предмет: Английский язык, автор: ТёмаТащер
Jane is a little girl. She is six. She has no brother or sister. But she has two good friends: Ben and Betty.

Ben is a big nice dog. It is black and white. Betty is a big pretty doll. She has got long fair hair and a nice red dress. Jane likes to play with them. So every day after dinner she plays with Betty and Ben. They play in the house; they play in the garden and near the river.

One day Jane goes to the river with Betty and Ben. She sees many red, orange and yellow flowers there. She likes the flowers very much. She wants to pick up some flowers for her mother.

But she falls into the river. Ben jumps after her. He catches her by the dress. Then he puts her under a big tree. Jane opens her eyes. “Oh, Ben, where is Betty? Where is Betty?” she cries.

Ben looks up and down and jumps into the river. Ben is not afraid of the water. Very quickly he comes back and puts Betty under the big tree, too. Jane is very happy; she doesn’t cry any more.--------------------------------------------------------------------------------------------------------------------------------------------ЗАДАНИЕ----------------------------------------------------------------------Выпишите 6 прилогательных---------------------------------------------------------------------------------Выпишите 8 существительных-------------------------------------------------------------------------------Выпишите 7 глаголов---------------------------------------------------------------------------------------------Выпишите 5 местоимений-----------------------------------------------------------------------------------Всё разное-------------------------------------------------------
Предмет: Другие предметы, автор: илья1899
Предмет: Алгебра, автор: age5a3566