Computer Science, asked by dikshitad016, 1 month ago

Write a program to add numbers for 0 to 5 using DO WHILE LOOP.​

Answers

Answered by SaiSantoshPal
0

int x = 1;

do{

printf("%i", x);

x ++

}

while(x=6);

Answered by AqdasZishan
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