Tình giai thừa trong Pascal (n!)

By Anonymous


program tinhgiaithu;
 uses crt;
  var n,i: integer;
        gt: longint;
begin
  write('Giai thua cua n='); readln(n);
    gt:=1;
  if N<0 then writeln(#7,'Khong duoc vi N<0')
    else
   begin
      if N>0 then
     for i:=1 to N do gt:=gt*i;
    writeln(N,'!=',gt);
   end;
  readln
end.


Theo: Shopkienthuc
Nguồn: KienThucViet.Net
Jillur Rahman

I'm Jillur Rahman. A full time web designer. I enjoy to make modern template. I love create blogger template and write about web design, blogger. Now I'm working with Themeforest. You can buy our templates from Themeforest.

No Comment to " Tình giai thừa trong Pascal (n!) "

(+) Nếu thấy bài viết còn thiếu sót hay cần bổ sung thêm rất mong bạn góp ý để blog ngày càng hoàn thiện.
(+) Khi đăng góp ý, bạn vui lòng viết Tiếng Việt đủ dấu và nhận xét đó có liên quan đến bài viết. Rất vui vì bạn đã đọc bài và cho ý kiến.