What does the following fragment of code display? What do you think the programmer intended the code

Question:

What does the following fragment of code display? What do you think the programmer intended the code to do, and how would you fix it?

int product = 1;
int max = 20;
for (int i = 0; i <= max; i++)
product = product * i;
System.out.println("The product is " + product);

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: