Advertisement
alexon5519

15-4

Oct 29th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #include<iostream.h>
  2. #include<fstream.h>
  3. int main(){
  4. ifstream f1("BAC.IN");
  5. int x,n=0;
  6. while(f1>>x)
  7. if(x%2!=0)
  8. n=x;
  9. if(n==0)
  10. cout<<"NU EXISTA";
  11. else
  12. cout<<n;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement