Главная » 2017 » Ноябрь » 13 » 3_40
09:16
3_40

#include <iostream>
using namespace std;
int main()
{
    setlocale(LC_ALL,"rus_rus.1251");
    int a,b;
    bool flag=false;
    cin>>a;
    while (a!=999)
    {
        b=a;
        cin>>a;
        if (a==999) break;
        if (a<b)
            flag=true; 
    }
    if (flag) cout<<"Нет возрастания"<<endl;
    else cout<<"Возрастание"<<endl;
    system("pause");
    return 0;
}

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