Главная » 2017 » Октябрь » 9 » 3_1
08:40
3_1

#include <iostream>
#include <math.h>
using namespace std;
int main()
{
    setlocale(LC_ALL,"rus_rus.1251");
    int p=1;
    for (int i=1;i<=10;i++)
        p=p*i;
    cout<<"p="<<p<<endl;
    system("pause");
    return 0;
}

Просмотров: 352 | Добавил: denjes | Рейтинг: 0.0/0
Всего комментариев: 0
avatar