Cod sursa(job #874613)
Utilizator | Raul Breje Breje_Raul | Data | 9 februarie 2013 00:40:36 |
---|---|---|---|
Problema | Fractii | Scor | 0 |
Compilator | fpc | Status | done |
Runda | Arhiva de probleme | Marime | 0.3 kb |
var i,j,n,nr:longint;
begin
assign(input,'fractii.in');reset(input);
assign(output,'fractii.out');rewrite(output);
read(n);
for i:=1 to n do
begin
for j:=1 to n do
begin
if (i mod j<>0) then
begin
inc(nr);
end;
end;
end;
write(nr+1);
end.