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;
1. Input number, n 2. a = 0 3. d = n % 10 4. Print d 5. a = a + d 6. n = n / 10 7. If n > 0 then goto 3 8. Print a
you can use the condition statement like for(i=0:i<=10;i++)
Each statement in Java ends with a semicolon, for example: int a; a = 5; int b = 10;
A good program display a model of human cells, and test different mutations.
Use a loop. while (1 < 10){ } do{ }while(1 < 10) for(i = 0; i < 10; i+=1){ } var foo = function( if (1<10){ foo(); } )
5 & 10
The integers are 9 and 10.
10 and 12
An example in Java, to compute 10!: int factorial = 1; for(int i = 1; i < 11; i++) { factorial *= i; }
5 and 10
-6 and -4.
The integers 2 and 10 have a product of 20 and a sum of 12.
10 and 2.
-15 and 5.
They are -15 and 5.
They are -10 and -9.
35 is the product of 10 and 3.5. If you mean integers though, 10 is not a factor of 35.