From 51f95414ea3004930c2c4cbfe29e608d56c8a8d8 Mon Sep 17 00:00:00 2001 From: sahilarora97 <33257577+sahilarora97@users.noreply.github.com> Date: Tue, 31 Oct 2017 19:27:27 +0530 Subject: [PATCH] find_number_in_array --- Warmup/find_number_in_array | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Warmup/find_number_in_array diff --git a/Warmup/find_number_in_array b/Warmup/find_number_in_array new file mode 100644 index 0000000..f29e98c --- /dev/null +++ b/Warmup/find_number_in_array @@ -0,0 +1,29 @@ +//wap to enter a array size then neter the array elements and finally aska to enter a no to be searched in the array and fgin weather it is present or not , if yes telll the location . +#include +using namespace std; +int main() +{ + int n,arr[10],flag=0; + cin>>n; + cout<<"Enter the elements of the array"; + for(int i=0;i>arr[i]; + } + int val; + cout<>val; + + int i; + for( i=0;i