TheRasVa

Задача 2,6

Feb 18th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. // Задача 2,6.cpp: определяет точку входа для консольного приложения.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10.     setlocale(LC_ALL, "russian");
  11.     int n, output = 1;
  12.     cin >> n;
  13.     for (int i = 2; i <= n; i++)
  14.         output *= i;
  15.     cout << output << endl;
  16.     system("PAUSE");
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment