Predict the output “sum” in the following program. sum = 0 for i in range (1, 11, 2): sum+ = i print “sum=”, sum
(A) 11
(B) 22
(C) 24
(D) 25
Answers
Answered by
12
int i;
i=0;
repeat
i=i+1; <====== PASCAL PROGRAM
print i;
until(i<10)
end
No. of times the loop is executed?
55. For the following program
Convert (int A,var ,int B;int c)
{A=10;
B=4-;
C=120;
}
Convert (inta,b,c)
{ <====== PASCAL PROGRAM
a=1;
b=4;
c=12;
}
I hope this will help you
XD
Answered by
0
Answer:
Explanation:
25
Similar questions
Social Sciences,
7 months ago
Hindi,
7 months ago
Science,
7 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago
English,
1 year ago
English,
1 year ago