Find the smaller number between these two numbers and


1. A single line of code to declare, create, and initialize "blue, "green", and "red" into a string array

2. A single line of code to pass an array to a method

3. Declare an integer array named data which could store 10 elements. Then use a loop to store 1 to 10 in the array in the following manner: store 1 in array index 0; 2 in array index 1; 3 in array index 2 and so on. Then display this values (using document.write) from the array.

4. A function called FindSmaller that takes two integer numbers as parameter then find the smaller number between these two numbers and return the smaller number at the end. Call the function FindSmaller from html section

5. A "for" loop to count down from 10 to 1. Leave the body of the loop blank.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Find the smaller number between these two numbers and
Reference No:- TGS02757732

Now Priced at $25 (50% Discount)

Recommended (90%)

Rated (4.3/5)