The flowchart to read 10 positive integers K>10 Start A N K=1 Sum = 0 Sum = Sum + K2 B Is Y Print K > 100? sum K=k+1 End B A
Chat with our AI personalities
It isn't. 5 - 10 = -5
The sum of the first 10 positive integers, using the formula N1 + (N1 + 1) + ... + N2 = N2 * (N2 + 1) / 2 - (N1 - 1) * N1 / 2 is: 55
Yes. The sum of 1 to 10 (inclusive) is 55.
There are 10 one digit positive integers (0 - 9) and 9 one digit negative integers (-9 to -1) making 19 in all.
Amongst counting numbers (positive integers) only 4.