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


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