Untitled
unknown
c_cpp
2 years ago
250 B
6
Indexable
#include <iostream>
#include <cmath>
using namespace std;
int main() {
int a,past,count = 0;
cin >> a;
past = a;
while (a != 0) {
cin >> a;
if (a > past && a != 0) {
count += 1;
}
past = a;
}
cout << count;
}Editor is loading...