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 down a program that initiates integer N and prints all its divisors


  • var N : longint;
  • for k:=2 to N div 2 do
  • if N mod k=0 then write(k:4);
  • begin
  • readln(n);
  • write('Enter N= ');
  • k : byte;
  • end.