var a: array[1..20] of integer; i: byte; tong1, tong2: real; begin for i:=1 to 20 do begin write('Nhap gia tri cho phan tu thu ',i,': '); readln(a[i]); end; for i:=1 to 20 do if (a[i] mod 5 = 0) then tong1:=tong1+a[i]; writeln('Tong la : ',tong1); Tại sao không thể khia báo tong1, tong2 kiểu real ?

Các câu hỏi liên quan

I. Put the verbs into the correct forms 1. Our environment ____________ by people’s bad behavior. (destroy) 2. Gold ____________ in California in the nineteenth century . (discover) II. Change these sentences into the passive voice Part A: Simple present tense 1. She puts her pens and pencils in the second drawer. ...................................................................................................................................................... 2. I study the reports very carefully. ...................................................................................................................................................... 3. She writes many letters everyday. ...................................................................................................................................................... 4. Kim gives the reports to Mr. Wilson everyday. ...................................................................................................................................................... Part B: Simple past tense 5. We heard the sound of music ...................................................................................................................................................... 6. The police arrested ten men. ...................................................................................................................................................... 7. She didn’t send that letter yesterday. ...................................................................................................................................................... 8. Columbus discovered America in 1492. ......................................................................................................................................................