diff --git a/Q1_CP.cpp b/Q1_CP.cpp new file mode 100644 index 0000000..4f46bfa --- /dev/null +++ b/Q1_CP.cpp @@ -0,0 +1,46 @@ +#include +#define MAX 100 +using namespace std; +int main() +{ + int a1[MAX]; + int a2[MAX]; + int n; + cout<<"\n Enter the size of an array:-"; + cin>>n; + int i; + cout<<"\n Enter the element of an array:-\n"; + for(i=0;i>a1[i]; + } + int ind=0; + //EVEN NUMBER + for(i=0;i +#include +using namespace std; +#define MAX 100 +int main() +{ + int arr[MAX]; + int i,j,n,c=0; + cout<<"Enter the Size of the Array\n"; + cin>>n; + cout<<"Enter the elements of an array\n"; + for(i=0;i>arr[i]; + } + for(i=0;i<=9;i++) + { + c=0; + for(j=0;j