Dùng Function Tính Giai Thừa | VN4000 PASCAL

VN4000 PASCAL

Lý thuyết và Bài tập Lập trình Pascal

  • Home
  • About us

Dùng function tính lũy thừa Dùng Function tạo tam giác Pascal

Dùng Function tính giai thừa

January 2, 2012

vn4000 Ví dụ và Bài tập lập trình Pascal Leave a comment

Chương trình Dùng Function tính giai thừa

Program Giai_Thua_Function; Uses Crt; Var n:integer; Function gt(n:integer):longint; Var kq,i:integer; Begin kq:=1; For i:=1 to n do kq:=kq*i; gt:=kq; End; Begin Clrscr; Writeln(‘CHUONG TRINH TINH GIAI THUA:’); Write(‘Nhap n = ‘); readln(n); Writeln(n,’! = ‘,gt(n)); Readln;

End.

Share this:

  • Facebook
  • X
Like Loading...

Related

Comments are closed.

Dùng function tính lũy thừa Dùng Function tạo tam giác Pascal

Tìm kiếm

Bài viết mới

  • Bài 29 FULL SCREEN cho DOSBOX
  • Bài 28 Runtime Error 200
  • Bài 27 Một Số Hàm Số
  • Bài 26 Cấu trúc rẽ nhánh và lựa chọn phần 3
  • Bài 25 Cấu trúc rẽ nhánh và lựa chọn phần 2

Danh mục

  • Lý thuyết lập trình Pascal
  • Ví dụ và Bài tập lập trình Pascal

Blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use. To find out more, including how to control cookies, see here: Cookie Policy
  • Reblog
  • Subscribe Subscribed
    • VN4000 PASCAL
    • Sign me up
    • Already have a WordPress.com account? Log in now.
    • VN4000 PASCAL
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • View post in Reader
    • Manage subscriptions
    • Collapse this bar
%d Design a site like this with WordPress.comGet started

Từ khóa » Tính Giai Thừa Của N Pascal