Read four integers from input and assign them to side1, side2, side3, and side4, respectively. Then, output the sum of the four
integers, followed by a newline.
?Click here for examples
Ex 1: If the input is 24 32 39 11, then the output is:
106
Ex 2: If the input is 16 45 42 28, then the output is:
131
1 #include <iostream>
2 using namespace std;
3
4 int main() {
5
int side1;
6
int side2;
7
int side3;
8
int side4;
9
side1 = 24;
10
side2 = 32;
11
side3 = 39;
12
side4 = 11;
13
14 cout << side1 + side2 + side3 + side4 << endl;
15
/* Your code goes here */
16
17 return 0;
18}