Multiple choice

What will be the output of the following code snippet? main() {
int num=1;
clrscr();
for(j=1;j<=6;j++) {
for(i=j;i>=1;i--) {
for(k=1;k<=i;k++)
num*=k; }
}
printf(The num is: %d,num); getch(); }

  1. 1

  2. 6912

  3. 0

  4. 216

  5. 720

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

After num reached the negative end it becomes 0 and 0 multiplied by 0 yields 0.