Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Задача 2,6.cpp: определяет точку входа для консольного приложения.
- //
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "russian");
- int n, output = 1;
- cin >> n;
- for (int i = 2; i <= n; i++)
- output *= i;
- cout << output << endl;
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment