Array 1 D
Array 1 D
Array 1 D
#include<iostream>
using namespace std;
int main(){
int i,n;
cout<<newarr[i]<<" ";
}
cout << endl;
return 0;
}
2.
#include<iostream>
using namespace std;
int main(){
int Array_1[12];
cout<<"Enter 12 element :"
for(int i=0 ;i<=12;i++){
cin>>Array_1[i];
}
int count[12]=0;
for (int i = 0;i < 12; i++) {
if(Array_1[i]==count[12])
return 0;
}
3.
#include<iostream>
using namespace std;
int main(){
int n,m;
if (arr1[i]% 2 == 0)
{
newarr[count] = arr1[i];
count++;
}
}
for(int i =0 ;i<m;i++){
if (arr2[i]% 2 == 0)
{
newarr[count] = arr2[i];
count++;
}
}
cout<<"New even elements array :"<<endl;
for(int i=0 ;i<count;i++){
cout<<newarr[i]<<" ";
}
cout << endl;
return 0;
}