Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Задание: F.Количество больших предыдущего
- ///////////////////////////////
- #include <iostream>
- using namespace std;
- int main()
- {
- int f = 0;
- int a_1 = 0, a_2 = 0;
- cin >> a_1;
- do
- {
- cin >> a_2;
- if(a_2 > a_1)
- {
- f++;
- }
- if(a_2 == 0)
- {
- cout << f;
- return 0;
- }
- }while(1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement