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

homework - 1 #769

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
7,776 changes: 0 additions & 7,776 deletions 2015/YauheniSushkevich/3/.each do |reference|

This file was deleted.

4 changes: 0 additions & 4 deletions 2016/AlexandrKolesenko/Task2 /Gemfile

This file was deleted.

119 changes: 0 additions & 119 deletions 2016/AlexandrKolesenko/Task2 /commands.rb

This file was deleted.

31 changes: 0 additions & 31 deletions 2016/AlexandrKolesenko/Task2 /logic.rb

This file was deleted.

22 changes: 0 additions & 22 deletions 2016/AlexandrKolesenko/Task2 /start_bot.rb

This file was deleted.

30 changes: 0 additions & 30 deletions 2016/AlexandrKolesenko/Task2 /start_spec.rb

This file was deleted.

16 changes: 16 additions & 0 deletions 2018/JuliaPritychenko/pascal.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
print 'Enter depth: '
depth = gets.to_i
print 'Enter basic number: '
base_number = gets.to_i
array = []
(1..depth).each do |i|
array[i] = 0
end
array[0] = base_number
(1..depth).each do |j|
(1..j).reverse_each do |i|
print "#{array[i - 1]} "
array[i] = array[i - 1] + array[i]
end
puts
end