Answer:
The solution in C++ is:
#include <iostream>
using namespace std;
int main(){
int N, A;
cout<<"Grids: "; cin>>N;
cout<<"White: "; cin>>A;
cout<<"Black: "<<N * N - A;
return 0;
}
Explanation:
This declares N and A, as integers
int N, A;
This gets inputs for N
cout<<"Grids: "; cin>>N;
This gets inputs for A, (the white grids)
cout<<"White: "; cin>>A;
This calculates and prints the number of black grids
cout<<"Black: "<<N * N - A;
<u>PS</u>
From the question, we understand that the grid is N by N square grids.
This means that:
So, the number of black grids is:
Portrait landscape is better for wide images
Answer:
world wide web
Explanation:
they provide discussion forum like this of brainly which people ask questions which others can respond to
Commands are organized on the Ribbon in tabs.
•
•
<em>- Marlon Nunez</em>