#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int i;
double avg;
int val ;
avg = 0.0;
for(i=0; i<5; i++) {
cout << "Enter a value: ";
cin >> val;
avg = avg + abs(val);
}
avg = avg / 5 ;
cout << "\nAverage of absolute values: " << avg;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0ZGxpYj4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewogIGludCBpOwogIGRvdWJsZSBhdmc7CiAgaW50IHZhbCA7CgogIGF2ZyA9IDAuMDsKICBmb3IoaT0wOyBpPDU7IGkrKykgewogICAgY291dCA8PCAiRW50ZXIgYSB2YWx1ZTogIjsKICAgIGNpbiA+PiB2YWw7CgogICAgYXZnID0gYXZnICsgYWJzKHZhbCk7CiAgfQogIGF2ZyA9IGF2ZyAvIDUgOwoKICBjb3V0IDw8ICJcbkF2ZXJhZ2Ugb2YgYWJzb2x1dGUgdmFsdWVzOiAiIDw8IGF2ZzsKfQo=