#include <iostream>
#include <cstdio>
using namespace std;
int b[]={7,4,9,6,2};
int mx(int i, int a[], int n, int mxx){
if(i == n-1) return mxx;
mx(i+1,a,n,max(a[i],mxx));
}
int main()
{
cout<<mx(0,b,5,0)<<endl;
return 0;
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment