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 a integer positive four-digit number N and defines if it is symmetric (it is equally read forwards or backwards).


  • else
  • c := (N div 100) mod 10;
  • var n : integer;
  • write ('Enter n= ');
  • if (a=b) and (c=d) then write('Yes')
  • end.
  • readln (n);
  • begin
  • end
  • b := N mod 10;
  • if (n<1000)or(N>9999) then write ('Error')
  • a := N div 1000;
  • begin
  • a, b, c, d : byte;
  • d := (N div 10) mod 10;
  • else write('No')