Java program that prints the product of the first ten positive integers
Posted by Samath
Last Updated: January 08, 2021

Write a program that prints the product of the first ten positive integers.

public class Main
{
	public static void main(String[] args) {
 		System.out.print("Product of the first ten positive integers: ");
		System.out.println(1 * 2 * 3 * 4 * 5 * 6 * 7 * 8 * 9 * 10);
	}
}
Related Content