The print statement prints each number, but does not add them up although it should
int total =+ n;