consult
CodePudding user response:
Your code input and output only one sample, and the topic request multiple sampleChange
While (the scanf (" % d ", & amp; N)==1) {
//for the first line of your code to the printf here
}
If the topic request finally unified output change the sum to array, each row corresponding calculation results in the sum array element, the last cycle print the sum array,