Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
nomer7
var a,b,c,d,e,f,t,n,a1,b1,r:extended; begin Assign(input,'input.txt'); Reset(input); Assign(output,'output.txt'); Rewrite(output); read(a,b);a1:=a; b1:=b; f:=b+a; f:=f/2; f:=f*(b-a+1); while trunc(a) mod 3<>0 do a:=a+1; while trunc(b) mod 3<>0 do b:=b-1; c:=trunc(b-a) div 3+1; d:=(b+a)/ 2; c:=c*d; a:=a1; b:=b1; d:=0; while trunc(a) mod 5<>0 do a:=a+1; while trunc(b) mod 5<>0 do b:=b-1; t:=trunc(b-a) div 5+1; d:=(b+a)/ 2; t:=t*d; a:=a1; b:=b1; d:=0; while trunc(a) mod 15<>0 do a:=a+1; while trunc(b) mod 15<>0 do b:=b-1; n:=trunc(b-a) div 15+1; d:=(b+a)/ 2; n:=n*d; write(trunc(f-c-t+n)); end.
run
|
edit
|
history
|
help
0
practica 1 ejercicio 1
Pasha
Lab1SumWithFor
zwro
registro de alunos, calculo de média
test20
matrica
Homework 1
practica 2 ejercicio 7
Trabajo pascal