Поделитесь своими знаниями, ответьте на вопрос:
Информатика круги Эйлера задача 9-10 класс 6-7 номер бука В
#include <iostream>
#include <cstdio>
int main() {
std::size_t n;
std::cin >> n;
bool isIncreasing = true;
float previous, current;
std::cin >> previous;
while (--n) {
std::cin >> current;
if (previous >= current) {
isIncreasing = false;
break;
}
previous = current;
}
std::cout << "The sequence is " << (isIncreasing ? "" : "NOT ") << "increasing";
return 0;
}