From b41adc29f7ab749c4cc220331e13a2b1b9e20c1e Mon Sep 17 00:00:00 2001 From: Soumyadeep Das <96656148+soumyadeepdas28@users.noreply.github.com> Date: Tue, 26 Jul 2022 20:04:11 +0530 Subject: [PATCH] Add files via upload --- Q1_CP.cpp | 46 ++++++++++++++++++++++++++++++++++++++++++++++ Q2_CP.cpp | 36 ++++++++++++++++++++++++++++++++++++ README.md | 26 +++----------------------- 3 files changed, 85 insertions(+), 23 deletions(-) create mode 100644 Q1_CP.cpp create mode 100644 Q2_CP.cpp 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