#include <iostream>
int main()
{
int i;
float sum = 0;
int n = 0;
for (i = 1; i <=10; i = i + 1)
{
sum = sum + i * i;
n = n + 1;
}
std::cout << "the average is " << sum/n << std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKQp7CglpbnQgaTsKCWZsb2F0IHN1bSA9IDA7CglpbnQgbiA9IDA7CgoJZm9yIChpID0gMTsgaSA8PTEwOyBpID0gaSArIDEpCgl7CgkJc3VtID0gc3VtICsgaSAqIGk7CgkJbiA9IG4gKyAxOwoJfQoKCXN0ZDo6Y291dCA8PCAidGhlIGF2ZXJhZ2UgaXMgIiA8PCBzdW0vbiA8PCBzdGQ6OmVuZGw7CgoJcmV0dXJuIDA7Cn0=