You should at least try them before, then if you need help with a specific question, ask it here.
You'll end up not understanding anything and it will screw you over big time during your whole semester.
Anyways, if you don't want to follow my advice, here are the answers:
1. a. return 0 (end the program, no output)
b. Integer is too small
c. 15
d. 10
e. 16
2.
#include "stdafx.h"
#include <iostream> // old - # <iostream>;
using namespace std;
int main() // old - int main
{
int x, y, z;
cout << "Enter three different integers: " << endl; // forgot << before endl;
cin >> x ; // old - cin >> "x" >> "y" >> "z" endl;
cin >> y ;
cin >> z ;
cout << endl;
if (x < y && z > y || z < y && x > y) cout << y; // removed ";" after if() for all 3 and fixed inside the if
if (z < x && y > x || y < x && z > x) cout << x;
if (y < z && x > z || x < z && y > z) cout << z; // old - cout << y;
return 0; // old - return ;
} // no ; at the end of a function
3.
Code
void multiPrint(int n, char c) {
for(int i = 0; i < n; i++){
for(int j = 0; j <= i; j++){
cout << c << " ";
}
cout << endl;
}
}
4.
Code
int add3r(int a,int b,int c) {
int sum;
sum = a + b + c;
return sum;
}
Or at least try to understand the answers. (hopefully I didn't make any stupid mistakes)