#include <iostream>   
#include <string>

using namespace std;

int i;
int product;
int n;

int main()
{
  cout << "Please enter a positive integer:  ";
  cin >> n;
  i = 1;
  product = 1;
  while(i<=n){
    product = product*i;
    i++;
  }
  
  cout << "The product of the integers from 1 to " << n <<" is: " << product << ".\n";
  return 0;
}
