Answer:
Refer below.
Explanation:
VPC, Subnets, Route Table(s), Nat Gateway, and Internet Gateway. These are the least required services to provide internet access to a private EC2 instance. NAT gateway requires an internet gateway.
Answer:
#include <iostream>
using namespace std;
int main()
{
int num;
cin>>num;
cout<<num<<" "<<2*num<<" "<<num*num<<endl;
return 0;
}
Explanation:
The code snippet above written in C++ programming language meets all the requirements of the question as specified in the instructors note.
Importantly is the use multiple C++'s cout (<<) operators to display all the output seperated by spaces on the same line.