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 three numbers X, Y and Z and finds the MIN.


  • end.
  • readln(y);
  • write('Enter x=');
  • var x, y, z, min : real;
  • write('Enter y=');
  • if min>y then min := y;
  • readln(z);
  • begin
  • if min>z then min := z;
  • write('Enter z=');
  • write(‘min= ‘, min)
  • min := x;
  • readln(x);