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 the number X and interval [A, B) and defines if the number X belongs to the interval.

  • var x, a, b : real;
  • begin
  • else
  • write('Enter a=');
  • readln(x);
  • write('Enter b=');
  • end.
  • readln(b);
  • if a>b then write('error')
  • if (x>=a)and(x<b) then write('Yes')
  • write('Enter x=');
  • readln(a);
  • else write('No')