From f6e68ed564747fccad9083659740fb38512c6cd9 Mon Sep 17 00:00:00 2001 From: Akhila Talanjeri <56072785+AkhilaTalanjeri@users.noreply.github.com> Date: Fri, 1 Oct 2021 17:35:36 +0530 Subject: [PATCH] Update real2.cpp --- real2.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/real2.cpp b/real2.cpp index b81793c..b9c37b1 100644 --- a/real2.cpp +++ b/real2.cpp @@ -19,7 +19,12 @@ void max_min_array(int arr[], int size) int main() { - int arr[] = { 1000, 11, 445, 1, 330, 3000 }; - int arr_size = sizeof(arr)/sizeof(arr[0]); - max_min_array(arr, arr_size); + int arr[],n; + cout<<"enter the number of elements in the array"<>n; + cout<<"enter the array elements"<>arr[i]; + + max_min_array(arr, n); }