write program to ask user to enter 4 numbers and the output the main of thes mumbers,this program should only use 2 varible
#include <iostream>
using namspace std;
int main()
{
double mean = 0;
for (int i = 0; i < 4; i++) {
double foo; cin >> foo;
mean += foo;
}
cout << mean / 4;
return 0;
}
Comments
Leave a comment