So ... if I understand right, you want to insert some numbers (specific ones?) and sum them up? I'm not sure what you mean with "my assignment wants me to exactly print this message out"
Oh ...
Sadly, I can really test this since I'm working on windows, but maybe you could take a look here to get the output to /dev/null (also look at the commentaries):