diff --git a/Leader.cpp b/Leader.cpp new file mode 100644 index 0000000..d3887d2 --- /dev/null +++ b/Leader.cpp @@ -0,0 +1,42 @@ +#include +using namespace std; + + +void Leader(int arr[], int n){ + +int max= arr[n-1]; +cout<<"here's the leaders "<=0;i-- ){ + if(max>n; +cout<<" enter array value "; +for(i=0;i>arr[i]; +} +Leader(arr , n); +// int max= arr[n-1]; +// cout<<"here's the leaders "<=0;i-- ){ +// if(max