diff --git a/Algorithms/MaxPro.cpp b/Algorithms/MaxPro.cpp new file mode 100644 index 000000000..0b1d54e68 --- /dev/null +++ b/Algorithms/MaxPro.cpp @@ -0,0 +1,33 @@ +#include +using namespace std; +int main() +{ + int n; + int a[100]; + int i=0; + int j=0; + int cnt=0; + int n1=0; + int n2=0; + cout<<"Enter the size of the array: "; + cin>>n; + cout<<"Enter the array Elements: "; + for(i=0;i>a[i]; + } + int pro=a[0]*a[1]; + for(i=0;ipro){ + n1=a[i]; + n2=a[j]; + pro=a[i]*a[j]; + } + } + } + cout<<"The 1st number is "<