Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Số Hữu Nghị
SUBMITTED BY:
Guest
DATE:
Nov. 15, 2014, 2:38 p.m.
FORMAT:
Text only
SIZE:
502 Bytes
Raw
Download
Tweet
HITS:
531
Go to comments
Report
PROGRAM Capsohuunghi;
USES crt;
VAR x:LONGINT ;
a:ARRAY[1..100] OF STRING;
FUNCTION TUT(x:LONGINT):LONGINT;
VAR i,y:LONGINT;
BEGIN
y:=0;
FOR i:=1 TO trunc(x/2) DO
IF x MOD i = 0 THEN y:= y + i ;
TUT:=y;
END;
BEGIN
clrscr;
Writeln('Cac cap so Huu Nghi la : ');
FOR x:=100 TO 10000 DO
IF (x=TUT(TUT(x))) AND (x<>TUT(x)) AND (x<TUT(x))THEN Write(x,' va ',TUT(x),' ; ');
readln;
END.
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus