Console.WriteLine (\"Please enter some numbers\"); int sum = 0; for(;;) { string input = Console.ReadLine (); if
sum = sum + input; //throws an error here
should be:
sum = sum + inputParsed ;
You are using the original input instead of the parsed value. And you don't need sumParsed because you just keep the total sum in sum and you do no need to cast the int to a string and then parse it back to an integer.
sumParsed
sum