Can i make this code to containe squere matrix in cpp
void sort(int arr[], int n){for (int i=0; iif (arr[i]&1){arr[i]*=-1;}}sort(arr,arr+n);
for (int i=0; iif (arr[i]&1){arr[i]*=-1;}}}int main{int arr[]={79,10,89,66,67};int n=sizeof(arr)/sizeof(int);sort(arr,n);cout<"\nthe numbers:="">"\nthe>for(int i=0; icout<><">">}cout<>cout<"\neven numbers="" in="" ascending="" order:="">"\neven>for (int i=0; iif(arr[i]%2==0){cout <><">">}}cout<>cout<"odd numbers="" in="" descending="" order:="">"odd>for (int i=0; iif(arr[i]%2!=0){cout<><">">}}}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here