viết chương trình tính tổng bình phương các số lẻ nhỏ hơn hoặc bằng 20 . giải giúp mình nha. mình cần gấp cảm ơn ạ
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Answers ( )
đây bạn
program tongbinhphuongle;
uses crt;
var s:integer; i:byte;
begin
clrscr;
s:=0;
for i:=1 to 20 do
if i mod 2=1 then s:=s+(i*i);
write(‘Tong binh phuong cac so le be hon hoac bang 20 la: ‘,s);
readln
end.