watch sexy videos at nza-vids!

Wap hay

wap tai game hack
wap hay Phần mềm giả lập java trên PC 2020
wap hay Cú Pháp Đăng Ký Nick Team
wap hay Bắn Súng Mobi Army 2.3.9
wap hay Mạng Xã Hội Avatar 2.5.8
wap hay Phong Vân Truyền Kỳ v30
wap hay Ninja School Online 1.4.5
wap hay Khí Phách Anh Hùng 1.7.3
wap hay GoPet 1.3.3 - Hội Thú Chiến
wap hay Ngôi Làng Của Gió 3D 1.1.9
Tùy Chỉnh Quảng Cáo
TẮT QC
BẬT QC
» »
Tìm kiếm » Files 0
avatar

Bài tập dãy Fibonaci và số nguyên tố

Dãy FIBONACI là dãy được xác định như sau: F(0) = 0; F(1) = 1 và F(n) = F-1 + F-2 với n = 2, 3...
Hãy viết chương trình máy tính để nhập từ bàn phím số nguyên dương M (2
Ví dụ: Với M=10 thì các số FIBONACI nhỏ hơn M là: 0, 1, 1, 2, 3, 5, 8. Số 5 là số nguyên tố lớn nhất trong các số FIBONACI nhỏ hơn M. Vậy cần đưa ra màn hình dòng thông báo kết quả: Số cần tìm là: 5.

uses crt;
var j,i,m,a,b,t:longint;

{----------------------}

Function kt(n:longint):boolean;
var i,d:integer;
begin
kt:=false;
d:=0;
For i:=1 to n do
if n mod i=0 then inc(d);
if d=2 then kt:=true;
end;

{----------------------}

begin
clrscr;
Write('Nhap m= ');
readln(m);
a:=0;
b:=1;
Repeat
a:=a+b;
b:=a+b;
Until (a>=m) and (b>=m);

if a
Repeat
a:=a-b;
b:=b-a;
Until ( (kt(a)) and (a If a>b then writeln(a);
if b>a then writeln(b);

{----------------------}

readln
end

Đánh giá của bạn là góp ý quan trọng giúp Admin nâng cao chất lượng bài viết!
Đánh giá 0

XtCAT -:- 404

0: php_network_getaddresses: getaddrinfo failed: Name or service not known
Advertise Here

404 - Page Not Found - Back Home


Total Visits: 52519951
Visits Today: 367751
This Week: 367751
This Month: 4514397

This site, is built entirely by using XtGem.

XtGem is a visual mobile site building tool, allowing users to create and maintain highly customizable personal mobile sites completely free of charge - and without a need to know any programming language at all!

.png" alt="vote" />

XtCAT -:- 404
0: php_network_getaddresses: getaddrinfo failed: Name or service not known
Advertise Here

404 - Page Not Found - Back Home


Total Visits: 52519951
Visits Today: 367751
This Week: 367751
This Month: 4514397

This site, is built entirely by using XtGem.

XtGem is a visual mobile site building tool, allowing users to create and maintain highly customizable personal mobile sites completely free of charge - and without a need to know any programming language at all!

/ XtCAT -:- 404
0: php_network_getaddresses: getaddrinfo failed: Name or service not known
Advertise Here

404 - Page Not Found - Back Home


Total Visits: 52519971
Visits Today: 367771
This Week: 367771
This Month: 4514417

This site, is built entirely by using XtGem.

XtGem is a visual mobile site building tool, allowing users to create and maintain highly customizable personal mobile sites completely free of charge - and without a need to know any programming language at all!

- phiếu
Chia sẻ bài viết: SMS Google Zing Facebook Twitter
HomeLượt Xem: 1/ XtCAT -:- 404
0: php_network_getaddresses: getaddrinfo failed: Name or service not known
Advertise Here

404 - Page Not Found - Back Home


Total Visits: 52519974
Visits Today: 367774
This Week: 367774
This Month: 4514420

This site, is built entirely by using XtGem.

XtGem is a visual mobile site building tool, allowing users to create and maintain highly customizable personal mobile sites completely free of charge - and without a need to know any programming language at all!

Link:
BBcode:
Bình luận bài viết
Tên bạn:
Nội dung:





↑↑ Bài Viết Cùng Chuyên Mục
Tử Vi 12 Cung Hoàng Đạo Ngày 17/04/2020
Rom Cook Sony Z4 cho 1 số dòng Lenovo
Me Hài Ola Cập Nhật Ngày 17/11/2016
Tử Vi 12 Cung Hoàng Đạo Ngày 17/11/2016
Me Hài Ola Cập Nhật Ngày 16/11/2016
Tử Vi 12 Cung Hoàng Đạo Ngày 16/11/2016
Me Hài Ola Cập Nhật Ngày 15/11/2016
Tử Vi 12 Cung Hoàng Đạo Ngày 15/11/2016
Ninja, Share Ít Kinh Nghiệm Đập VK Thành Công Cao
Avatar, Chi Tiết Về Ra Mắt Chức Năng Thuê Kho
[ » Xem thêm...]

Từ Khoá:

TRUNG TÂM HỖ TRỢ

WapSieuVip.Pro v7 © 2018
DMCA.com