toan9xpro2012

Tinh tich

Feb 10th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. program cau4;
  2. uses crt;
  3. var i,n:integer;
  4. s,t:real;
  5.  
  6. begin
  7. clrscr;s:=1;
  8. write('Nhap n= ');readln(n);
  9. for i:=1 to n do
  10. begin
  11. write('a[',i,']= ');readln(t);
  12. s:=s*t;
  13. end;
  14. write('Tich cua day so da nhap la: ',s:5:2);
  15. readln;
  16. end.
Add Comment
Please, Sign In to add comment