answersLogoWhite

0

There are, of course, several ways to do this, but the simplest way is probably using a "for" loop:

int product = 1;

for(int i = 1; i<= 10; i++) product *= i;

User Avatar

Wiki User

11y ago

What else can I help you with?