Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lua #6

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,53 @@
TODO: тут будет описание от @voins

См. также: [пост про домашние задания](http://clubs.ya.ru/4611686018427468886/replies.xml?item_no=450).

# Классификация языков программирования
а) жизненная:
Средняя зарпплата в Москве меньше 80.000 (2011 год.)

* Delphi
* ASP.NET

Cредняя зарплата в Москве больше или равна 80.000 (2011 год.)
* Java
* Python
* Javascript

б)по типизации

статическая

* Java
* Паскаль
* С++

динамическая
* Javascript
* PHP

# Познакомиться с новым языком программирования.

Интерфейс игрушки, в которую я играю (EVE) написан ( или был написан на Lua ). Да, и вообще многие игрушки. Сейчас в нем разбираюсь

local life = cool
function hey ()
if life == cool do
for i = 1,5 do
print(' Hello, ya!!!! ')
end
end
end

do
local a = { 1, 3, 8, 2, 6, 4, 5, 7 }
repeat
local is_sorted, i = true, 1
while not( a[ i + 1 ] == nil ) do
if a[ i ] > a[ i + 1 ] then
a[ i ], a[ i + 1 ], i, is_sorted = a[ i + 1 ], a[ i ], i + 1, false
end
end
until not is_sorted
end