In decimal it is:
0*8^0 + 7*8^1 + 4*8^2 + 2*8^3 = 1336
Basically adding up the place values.
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
Answer:
#include <stdio.h>
int main()
{
for (int n = 12; n > 0; n--) {
printf("%d x 2 = %d\n", n, n * 2);
}
}
Explanation:
Only one loop.
B.) Make sure protocols are in place and are being followed.
Good luck, hope this helps! (:
I’m going to assume it’s wan