Write a program to add numbers for 0 to 5 using DO WHILE LOOP.
Answers
Answered by
0
int x = 1;
do{
printf("%i", x);
x ++
}
while(x=6);
Answered by
0
x = 0
while(x<=5):
x+=x
x+=1
print("Sum of first 5 numbers :",x)
THE PROGRAM WILL ADD NUMBERS FROM 0 TO 5 USING WHILE LOOP AND PRINT THE SUM.(It's for python)
Similar questions