Wiki Турков
Материал из Wiki
				
								
				(Различия между версиями)
				
																
				
				
								
				| Строка 8: | Строка 8: | ||
<h2>Код</h2>  | <h2>Код</h2>  | ||
<syntaxhighlight lang="pascal">  | <syntaxhighlight lang="pascal">  | ||
| + | |||
procedure bubbleSort(A : list of sortable items)  | procedure bubbleSort(A : list of sortable items)  | ||
     n := length(A)  |      n := length(A)  | ||
Версия 16:09, 28 октября 2024
Содержание | 
Оглавление
Проверка формул в википедии.
Математическая формула
Пример математической формулы: площадь трапеции
Код
<syntaxhighlight lang="pascal">
procedure bubbleSort(A : list of sortable items)
   n := length(A)
   repeat
       swapped := false
       for i := 1 to n-1 inclusive do
           { if this pair is out of order }
           if A[i-1] > A[i] then
               { swap them and remember something changed }
               swap(A[i-1], A[i])
               swapped := true
           end if
       end for
   until not swapped
end procedure
</syntaxhighlight>
Химическая формула
Образование оксида меди:
<chem> 2Cu + O2 -> CuO </chem>
Содержание
Лучший сайт в мире<ref>http://v.michm.ru/index.php/Заглавная_страница</ref>.
Ну и просто чтобы было<ref>примечание №2</ref>.