uses crt;
var i:integer;
t:longint;
begin
clrscr;
t:=0;
for i:=0 to 499 do
if i<250 then t:=t+i;
writeln('tong cac so nho hon 250 trong 500 so tu nhien dau tien la: ',t);
readln;
end.
#include <iostream>
using namespace std;
int main()
{
cout<<(float)(250)*250/2;
return 0;
}