In: Computer Science
Complete the following Java-like pseudocode. Your code should multiply all the numbers in nums and store it in a variable called mult
public static void main(String[] args){
int[] nums = <some array values>;
Here is the pseudocode given below:
Java-like pseudocode:
public static void main(String[] args)   // start main
method
   {
       int[] nums = {4,5,6,7};  
    // declares an Array of integers and initialize
the value
       int mult=1;  
    // declare the mult variable and initialize the
value 1
// use for loop
       for(int
i=0;i<nums.length;i++)
       {
           // multiply all
the numbers in nums and store it in a variable called mult
           mult =
mult*nums[i];  
       }
// print the Value of Multiply all the numbers
       System.out.println("Value of
Multiply all the numbers: "+mult);
   }   // end of the main
Screenshot of the code:
