#stuck on this code

3 messages · Page 1 of 1 (latest)

frigid palm
#

#include <iostream>
#include <iomanip>
using namespace std;

 int main() {

int num1;
int num2;
int num3;
int num4;

cin >> num1 >> num2 >> num3 >> num4;

cout << num1 * num2 * num3 * num4 << " ";
cout << (num1 + num2 + num3 + num4) / 4;
cout << endl;

cout << fixed << setprecision(3) << num1 * num2 * num3 * num4 << " ";
cout << fixed << setprecision(3) << (num1 + num2 + num3 + num4) / 4.0;

cout << endl;
return 0;
}

covert mortarBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

frigid palm
#

!solved