Kotlinlearncs.online LogoJava
Return to List

Solve: Array First and Last

Created By: Justin Maier
/ Version: 2024.8.0

Given int variables len, first, and last, create an array nums of ints of length len and assign its first element to the value of first and its last element to the value of last. Assume that the value of len is at least 2.

Related Lessons

Stuck? You may find these lessons helpful: