Input Format
You are given an integer N depicting the height of the staircase.
Output Format
Print a staircase of height N that consists of # symbols and spaces as given in Sample Output.
Sample Input
You have an array of integers, and for each index you want to find the product of every integer except the integer at that index. | |
Write a function get_products_of_all_ints_except_at_index() that takes an array of integers and returns an array of the products. | |
For example, given: | |
[1, 7, 3, 4] | |
your function would return: |
Input Format
You are given an integer N depicting the height of the staircase.
Output Format
Print a staircase of height N that consists of # symbols and spaces as given in Sample Output.
Sample Input
age = 5 | |
puts "#{('happy ' * age).capitalize}birthday!" |
string = "Denver" | |
puts "#{string[0]}#{string.length - 2}#{string[-1]}" |
diff --git a/lib/district.rb b/lib/district.rb | |
new file mode 100644 | |
index 0000000..ebe98f8 | |
--- /dev/null | |
+++ b/lib/district.rb | |
@@ -0,0 +1,10 @@ | |
+class District | |
+ attr_reader :name | |
+ | |
+ attr_accessor :enrollment |
id | first_name | last_name | phone_number | age | |
---|---|---|---|---|---|
1 | taylor | swift | 5555555 | 25 | |
2 | jeff | wan | 2222222 | 35 | |
3 | luna | lovegood | 3333333 | 17 |