Технология программирования
C++
Главная »
2018 » Октябрь » 15 » Циклы 1
|
#include <iostream>
using namespace std;
int main()
{
setlocale (0, "rus");
const int n=10;
int p=1;
for (int i=1;i<=n;i++)
{
p=p*i;
}
cout<<"P="<<p<<endl;
system ("pause");
}
|
Просмотров: 324 |
Добавил: denjes
| Рейтинг: 0.0/0 |