Kotlinlearncs.online LogoJava
Return to List

Solve: Fill Array With...

Created By: Justin Maier
/ Version: 2024.9.0

You are given a positive int variable len and a double variable x. You should declare a double array named exes with len elements and assign all of them to x.

For example, if len is 4 and x is 7.7, your program should create the array {7.7, 7.7, 7.7, 7.7}.

Related Lessons

Stuck? You may find these lessons helpful: