diff --git a/2.cpp b/2.cpp index d0ad6b5..2fd8ce5 100644 --- a/2.cpp +++ b/2.cpp @@ -3,22 +3,22 @@ using namespace std; int main() { - int arr[10], i, num, n, c=0, pos; - cout<<"Enter the array size : "; + int a[10], i, num, n, c=0, p; + cout<<"Enter size of array : "; cin>>n; - cout<<"Enter Array Elements : "; + cout<<"Enter the Elements : "; for(i=0; i>arr[i]; + cin>>a[i]; } - cout<<"Enter the number to search : "; + cout<<"Enter the number you want to search : "; cin>>num; for(i=0; i