Thank you what a life saver
Answer:
18% of 7 is 1.26
Explanation:
your question was somewhat unclear
Answer:
for (type variable-name : array-or-collection)-On each iteration the next element can be accessed using the specified variable.
Explanation:
the general structure of a for-each loop header is represented as :
for (type variable-name : array-or-collection) - On each iteration the next element can be accessed using the specified variable.
In other words it can be represented as:
for (type variable-name : array-or-collection)
{
//On each iteration the variable-name will contain the next value in the array or collection and this value can be referenced in the loop body using the variable-name.
}
Answer:
Charles Babbage is the father of computer.
hope this helps.
Answer:
#include <iostream>
using namespace std;
int main()
{
int exam1 = 70;
int exam2 = 85;
int examAverage;
examAverage = (exam1+exam2)/2;
cout <<"The Average of Exam1 and Exam2 is: "<<examAverage<<endl;
return 0;
}
Explanation:
Using the C++, we declare the three variables all of type
exam1
exam2 and
examAverage
We assign initial values of 70 and 85 to exam1 and exam2 respectively