#K76072. Product of Integers
Product of Integers
Product of Integers
Given an integer \( n \), calculate the product of all positive integers from 1 to \( n \). If \( n \) is less than 1, output 1. In mathematical terms, if \( n \geq 1 \), compute \( 1 \times 2 \times \cdots \times n \); otherwise, for \( n
inputFormat
The input consists of a single line containing an integer \( n \). The input is read from standard input (stdin).
outputFormat
Output a single integer: the product of all numbers from 1 to \( n \) if \( n \geq 1 \), or 1 if \( n < 1 \). The output should be written to standard output (stdout).
## sample5
120