Pascal | For Do loop, Repeat Until loop and While Do loop

preview_player
Показать описание
.
.
.
.
.
.
.
This is Shabina Liyauden from Sri Lanka. I have created tutorials on PASCAL programming language basics. Although These tutorials are made mainly focusing on the students of Sri Lankan Local syllabus GCE Ordinary Level Information and Communication technology subject, if you want to learn the basics of the PASCAl programming language then his tutorials are for you too.
.
.
.
Рекомендации по теме
Комментарии
Автор

We have four loops in Pascal
1: for counter:= initial_value to/downto final_value do
2: while (condition = true) do
3: repeat until (condition = false)
if condition is false continue loop
Because condition is checked at the end of loop it can be executed at least once
useful in circular lists, as main loop for the program
4: for elem in range/set/enumerable_type do
(at this moment elem should be ordinal type)

holyshit
Автор

why we need to add 'num1:= num1+ 1' at the end of while loop?
and thank you your video saved my life

nikolozdudagadelia
visit shbcf.ru