Basic Pascal Tutorial/Chapter 3/Programming Assignment/bg
From Lazarus wiki
Revision as of 10:11, 22 April 2021 by Alpinistbg (talk | contribs) (Created page with "{{Programming Assignment 3}} {{TYNavigator|FOR..IN|Solution_3}} 3E - Programming Assignments (author: Tao Yue, state: unchanged) '''Задача 1''' Намерете пъ...")
│
български (bg) │
English (en) │
français (fr) │
日本語 (ja) │
中文(中国大陆) (zh_CN) │
3E - Programming Assignments (author: Tao Yue, state: unchanged)
Задача 1
Намерете първите 10 числа от редицата на Фибоначи. Тази редица започва с две числа:
1 1
Всяко ach subsequent number is formed by adding the two numbers before it. 1+1=2, 1+2=3, 2+3=5, etc. This forms the following sequence:
1 1 2 3 5 8 13 21 34 55 89 144 ...
Задача 2
Display all powers of 2 that are less than 20000. Display the list in a properly formatted manner, with commas between the numbers. Display five numbers per line. The output should look like:
1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384