oneDouble

Objective(s): Practice declaring and instantiating arrays. 

Declare and instantiate an array containing the singular value 3.14

Do you recall the second way to create and initialize an array? There is also a "one-liner" way to declare and initialize a very small array! I would not recommend it if the array is too long. The syntax is below. 

//where val1, val2, etc are literal values match the type 
type[] nameOfArray = {el1, el2,el3, ..., elN};

Type your solution        
Skills Practiced:
3.D
4.A
4.B
Copyright © StudyCS 2024 All rights reserved.