ReadLine()); for (i = 1; i <= num; i += 2) { //Adding current odd number to sum variable sum += i; } Console.WriteLine("Sum of all odd numbers between 1 to ...
確定! 回上一頁