#include using namespace std; int main() { cout << "Insert numbers from 1 to 5" << endl; double temp = 0; double sum = 0; int num = 0; int h; while (cin >> temp){ h = floor(temp); if (h >=1 & h <= 5) { sum += h; cout << h << endl; ++num; } else { cout << "Drink a coffe and insert a number from 1 to 5" << endl; } } cout << "The mean is: " << sum/num << endl; return 0; }