#include using namespace std; int main(){ cout << "Hello world!" << endl; cout << "This is how to use a for loop:" << endl; for(int i = 0; i < 3; i++){ cout << i << endl; } cout << "This is how to store two arrays of numbers and add them together" << endl; double A[3]; double B[3]; for (int i = 0; i < 3; i++){ A[i] = i; B[i] = 2*i; } cout << "A = ["; for (int i = 0; i < 3; i++){ cout << A[i] << " "; } cout << "]" << endl; cout << "B = ["; for (int i = 0; i < 3; i++){ cout << B[i] << " "; } cout << "]" << endl; cout << "A+B = ["; for (int i = 0; i < 3; i++){ cout << A[i]+B[i] << " "; } cout << "]" << endl; return 0; }