Computer Science, asked by Aakash55555, 6 months ago

someone please explain the third one.....​

Attachments:

Answers

Answered by rohitkhajuria90
0

a)

20

22

24

26

28

b)

I

N

D

I

A

c)

3

c) explanation

Sum = sum +1 will execute only for i =0,4,8

While loop will execute from 0 to 9

For i = 0, if statement is true hence sum = 0+1 = 1

As i = i+2

Next i =2 for which

2%4 is not equal to 0 hence sum will not execute

Sum statement will execute when i = 4 and 8

Because 4%4 =0 and 8%4=0

When 4%4,sum will become sum = 1+1 = 2

Now,sum is 1

When 8%4 is true then

Sum = 2+ 1 = 3

Answered by mahirasingh45
0

Answer:

can i explain plz first give me permission

Similar questions