Computer Science, asked by tapankumarbera1967, 9 months ago

what will the output of following
i =0
s=0
read(n)
while(i<n)
{
i=i+1
s=s+i
}
print(s)

Answers

Answered by BrainlyProgrammer
1

Answer:

assuming n is 3

s=6

Explanation:

Mark my answer brainliest

Similar questions