Three friends go on a road trip and share the fuel. Show Each pays 15.67: divide fuel by friends, and use fixed << setprecision(2) for two decimal places.
Each pays 15.67
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
double fuel = 47.0;
int friends = 3;
// your code here: show what each one pays, with two decimal places
return 0;
}
Run tries the examples. When they look right, Submit.