Forgotten password

Language

Bulgarian    English

Advertisements




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.

Problem:
Write a program which inputs the number X and two intervals [A, B] and [C,D] and defines if the interval [A, B] is in the interval [C, D].


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