#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;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKQp7CiAgICBpbnQgaTsKICAgIGZsb2F0IHN1bSA9IDA7CiAgICBpbnQgbiA9IDA7CiAgICAKICAgIGZvciAoaSA9IDE7IGkgPD0xMDsgaSA9IGkgKyAxKQogICAgewogICAgCXN1bSA9IHN1bSArIGkgKiBpOwogICAgCW4gPSBuICsgMTsgICAgCiAgICB9CiAgICAKICAgIHN0ZDo6Y291dCA8PCAidGhlIGF2ZXJhZ2UgaXMgIiA8PCBzdW0vbiA8PCBzdGQ6OmVuZGw7CiAgICAKICAgIHJldHVybiAwOwp9