Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- ifstream fin("fisier.in");
- int main()
- {
- int a, b, c, d;
- bool flag = false;
- fin >> a >> b >> c;
- while(fin >> d)
- {
- if(flag == false && a < b && b < c && c < d)
- {
- cout << a << " " << b << " " << c << " " << d;
- flag = true;
- }
- a = b;
- b = c;
- c = d;
- }
- if(flag == false)
- cout << "NU EXISTA";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement