num=2
count=1
sum=0;
while num<10:
sum=sum+num
num+=3
print(num, ":", sum)
Convert this into while loop.
Language - python
Answers
Answered by
3
You used while loop correctly but your code will give errors becoz
indentation are not proper.
num=2
count=1
sum=0;
while num<10:
sum=sum+num
num+=3
print(num, ":", sum)
Answered by
2
Hola mate
Here is your answer -
You used while loop correctly but your code will give errors becoz indentation are not proper.
num=2
count=1
sum=0;
while num<10:
sum=sum+num
num+=3
print(num, ":", sum)
Similar questions
Math,
3 months ago
Math,
3 months ago
Math,
3 months ago
Computer Science,
7 months ago
Social Sciences,
7 months ago
Chemistry,
1 year ago
Math,
1 year ago