206k views
1 vote
Suppose that the content of the input file is: 14 13 26 8 -11 36 0 -1. What is the output of the following code? ifstream myInfile; myInfile.open("input.txt"); int value; int sum = 0; for (int x = 0; x < 8; x++) { myInfile >> value; if (value % 2 == 0) sum = sum + value; } cout << sum << endl;

User Wotanii
by
8.2k points

2 Answers

3 votes

Answer:

(int x = 0 / x 8) (x++))

Step-by-step explanation:

When given the imput this is the

User Siva K
by
7.6k points
2 votes

Answer:

(int x = 0 / x 8) (x++))

Step-by-step explanation:

User Celticminstrel
by
8.1k points