Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program cau7;
- uses crt;
- var i,n,s,t:integer;
- begin
- clrscr;s:=0;
- write('Nhap n= ');readln(n);
- for i:=1 to n do
- begin
- write('a[',i,']= ');readln(t);
- if t mod 2 = 0 then s:=s+t;
- end;
- write('Tong cac so chan trong day la: ',s);
- readln;
- end.
Add Comment
Please, Sign In to add comment