Установите корректность использования условного оператора в следующих ситуациях. if x<0 then x:=-y; if x>0 x:=y; if x>0 else x:=y; if x<0; then x:=-y;
Question
Solution 1
if x<0 then x:=-y;
- Это корректное использование условного оператора. Еслиx
меньше нуля, тоx
будет равен-y
.if x>0 x:=y;
- Это некорректное использование условного оператора. Отсутствует ключевое словоthen
, которое необходимо для указания действия, которое следует выполнить, Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study prob
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solv
Similar Questions
Установите корректность использования условного оператора в следующих ситуациях. if x<0 then x:=-y; if x>0 x:=y; if x>0 else x:=y; if x<0; then x:=-y;
If X~ N(0, 1), Y~N(0, 4), Z~N(0, 25). X, Y, Z are pairwise independent. Then X+Y+Z ~ N(0, 64)X+Y+Z ~ N(0, 29)X+Y+Z ~N(0, 30)X+Y+Z~ N(0,50)
For x∈(−π2,π2), if y(x)=∫cosecx+sinxcosecxsecx+tanxsin2xdx and limx→(π2)−y(x)=0 then y(π4) is equal to
If the system of linear equations:x-ky-z=0,kx-y-z=0,x+y-z=0,has nonzero solutions, then possible values of k areans.
Which logic is used in " If condition A is true then perform action X else perform Y"Select one:a.Selectionb.Sequencec.Iterationd.Loop