Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- # include <fstream>
- using namespace std;
- ifstream f("date.in");
- ofstream g("date.out");
- int medie(int a,int b)
- {
- int m;
- m=(a+b)/2;
- }
- int main()
- {
- float a,b,i,n,max=-999;
- f>>n>>a>>b;
- if(medie(a,b)>max)
- max=medie(a,b);
- g<<max;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement