Inside the for loop, value of sum is incremented by i i.e. sum = sum + i . The for loop continues until i is less than or equal to n (user's input).
確定! 回上一頁