answersLogoWhite

0


Best Answer

17

User Avatar

Eldred Bergstrom

Lvl 10
3y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

10y ago

k = 2

sum = 0

do until k = 16

sum = sum + k

k = k+1

next

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write the sum of all even numbers from 2-15 using D O Until Loop?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write an algorithm or draw a flowchart to display numbers from 100 down to 10?

n=100 loop until n = 9 print n n = n -1 end loop


How do you write a c program to design calculator using loop?

Wr


Write a for next loop for even numbers beginning at 10 and ending at 50?

int i;for (i=10; i


How do you write a c program sum of ALL Numbers in the Given Range using for loop?

Poor Boy. We do not do your homework here.


How do you alternate the input numbers using for loop in c plus plus?

Input a variable.


How do you create a loop (for loop, while loop) in Python?

In Python, you can create loops using different constructs, such as the for loop and the while loop. These loops allow you to repeatedly execute a block of code until a specific condition is met. Here's how you can create loops in Python: for loop: A for loop is used when you want to iterate over a sequence of elements such as a list, tuple, or string. It executes a block of code for each item in the sequence. for item in sequence: # Code block to be executed Here's an example that prints the numbers from 1 to 5 using a for loop: for num in range(1, 6): print(num) 2 while loop: A while loop is used when you want to repeat a block of code as long as a certain condition is true. It keeps executing the code block until the condition becomes false. while condition: # Code block to be executed Here's an example that prints the numbers from 1 to 5 using a while loop: num = 1 while num


Write a program that will graph using for loop?

A = 5do{statement;A = A + 1;} while (A < 10)


Using while loop write a program which calculates the product of digits from 1 to 5 and also show these nos vertically?

Using while loop, write a program which calculates the product of digits from 1 to 5 and also show these no's vertically.


How do you write a infinite for loop?

for(; ;);..this will do for an infinite loop


How do you write a program to twin print prime numbers from 1 to 50 in PHP?

I suggest you write an outer loop, that loops through all the numbers from 1 to 50. Call the variable that controls the loop something like "number".Then, initially assume the number is a prime (with a variable such as "isprime"); and write another loop that compares whether the number is divisible by any number from 2 to number-1. Call the controlling variable "factor". If number is divisible by factor, then it is not a prime, and you can exit the loop. At the end of the inner loop, if the variable "isprime" is still true, then you print the number.


Sum three real numbers using for loop in c program?

take input n chodo


To find biggest of four numbers using if else loop?

largest number a,b,c,d