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 a integer positive four-digit number N and defines if the it can divided by 3 when its last digit removed.

  • else
  • write ('Enter n= ');
  • end
  • end.
  • begin
  • n := n div 10;
  • else write('No')
  • if n mod 3 = 0 then write('Yes')
  • if (n<1000)or(N>9999) then write ('Error')
  • var n : integer;
  • readln (n);
  • begin