Answer:
hope this helps and do consider giving a brainliest to the ans if it helped.
Explanation:
//program to check if the entered grid is magic square or not
/**c++ standard libraries
*/
#include<bits/stdc++.h>
using namespace std;
/**function to check whether the entered grid is magic square or not
*/
int isMagicSquare(int arr[3][3]){
int i,j,sum=0,sum1=0,rsum,csum;
for(i=0;i<3;i++){
sum+=arr[i][i];
sum1+=arr[i][2-i];
}
if(sum!=sum1){
return 0;
}
for(i=0;i<3;i++){
rsum=0;
csum=0;
for(j=0;j<3;j++){
rsum+=arr[i][j];
csum+=arr[j][i];
}
if(sum!=rsum){
return 0;
}
if(sum!=csum){
return 0;
}
}
return 1;
}
/** main function to get user entries and
* call function
* and print output
*/
int main(){
int i,j,arr[3][3]={0};
for(i=0;i<3;i++){
for(j=0;j<3;j++){
cout<<"Enter the number for row "<<i<<" and column "<<j<<" : ";
cin>>arr[i][j];
}
}
int ret = isMagicSquare(arr);
if(ret==1){
cout<<"This is a Lo Shu magic square"<<endl;
}
else{
cout<<"This is not a Lo Shu magic square"<<endl;
}
return 0;
}
Answer:
The answer is "Option D".
Explanation:
Data storage requires different methods and tools to the dealing with the massive data volumes. It is distinct from only the storage, that relates to short term areas of data storage.
- This system memory, even though the computer is switched off, external storage systems retain information.
- In the sites storage, it uses the cookies to store sites data, that's why except option D all were wrong.
Ransomware is the malware that encrypts the users data
Create an online portfolio - Depending on the type of work you desire, having your work visible will begin to make yourself known in the community.
Find yourself small work to do - Each and every piece of work you do benefit s yourself, as you learn and build greater skill in your field.
Search for opportunities across different platforms - Rather than waiting for an opportunity to come to you, go out and look for one.