Forgotten password


Bulgarian    English


Report a bug !
Add search function to you browser

Powered by PHP Powered by MySQL
Pascal емулатор
1 member(s) online
Size control Print  Language: Pascal

Examples://Code arrange

To solve the problem you should shift the code with your mouse to end up with working solution.

Write a program which inputs three numbers X, Y and Z and defines if at least two of them are negative.

  • write('Enter x=');
  • readln(z);
  • readln(x);
  • write('Enter y=');
  • end.
  • write('Enter z=');
  • if (x<0)and(y<0) or (x<0)and(z<0) or (y<0)and(z<0) then write('Yes')
  • var x, y, z : real;
  • begin
  • readln(y);
  • else write('No')