Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int main() {
- using namespace std;
- int numb;
- numb = 1;
- cout << "Введите n";
- int n;
- cin >> n;
- cout << "Введите m";
- int m;
- cin >> m;
- m = m - 1;
- numb = n;
- for(int i = 1; i <= m; i++) {
- numb = numb * (n - 1);
- }
- cout << "Количество размещений = " << numb;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement