Question: The programming language is Java, please add comments or documentation so I can understand it. Thanks 10. Create a program that will output the sum
10. Create a program that will output the sum of all numbers that are divisible by 3 from 1-N (where N is any number input from user) Sample: Enter a number: 20 The sum of all numbers that are divisible by 3 from 1 20 is 63 11. Create a program that will output the factorial of 1 - N (where N is any number input from user and N should not be greater than 15 and not less than 1) Sample: Enter a number: 9 The factorial of 9 is 362880 Generation: 1 * 2 * 3 * 4 * 5 * 6 7 8 9 = 362880 12. Create a program that will output the square of the number without using multiplication (4 = 4 + 4 + 4 + 4 = 16) Sample: Enter a number: 5 The square of the number is 25
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
