Pranshu has made a program to print Even numbers up to limit N but the code below is not producing correct output. Help him to correct this code?
i=2
while (i <=10):
print ()
i=i+2
(1 Point)
Answers
Answered by
0
Answer:
kgdpuflhcljcljcjlcohxohdohxohxlhfjp
Answered by
0
Answer:
while (i <=N)
Explanation:
as the loop terminate at 10 this code will print upto 10 all even number but not for upto N .For printing upto N number loop terminating condition should be till N. And before that you have initialized the N or take input of N.
Similar questions