21. Print out the numbers 1 to 8
using a for loop.
Exercise ∞
22. Print out 5 times “Hey” using
a while loop.
Exercise !
23. Print out the first element of
this array.
Exercise (
24. Print out the first letter of the first
element of this array.
Exercise !
25. Print out the second element of this
array, but only after having checked
if it started with a “B” by using an if
statement.
Exercise )
26. Print out all names of this array by
using a for loop.
Exercise *
27. Combine all you just learned to print
out all names that starts with a “B”.
You must use a for loop and an if
statement.
Exercise *
28. Create a method that prints out all
students names (on one line) that
start with a specific letter. The
method takes two parameters:
1) An array of students 2) A letter
Exercise +
29. Exercise
Create a method called dating_app
that takes 2 or more arguments
(hobbies / age / IQ…). The method
will let you whether the person is a
good match for you ,