Advertisement
catalyn

prob 2 09.10.2014

Oct 9th, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2. # include <fstream>
  3. using namespace std;
  4. ifstream f("date.in");
  5. ofstream g("date.out");
  6. int medie(int a,int b)
  7. {
  8. int m;
  9. m=(a+b)/2;
  10. }
  11. int main()
  12. {
  13. float a,b,i,n,max=-999;
  14. f>>n>>a>>b;
  15. if(medie(a,b)>max)
  16. max=medie(a,b);
  17. g<<max;
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement