# applied logic, math

writing a program using loop structure, need the equation to produce all even numbers from 2-100 to print out each time I go through the loop

1. loop {
for (i=2;i<=100;i+=2) {print i}
}

posted by Steve

## Similar Questions

1. ### programming

Using Raptor, create a condition loop that will ask the user for input of two numbers. The numbers should be added and the sum displayed. The loop should also ask the user if he or she wishes to enter two more numbers and perform
2. ### Programming

2. Then it should prompt the user for the input file name of the file containing the data to sort. 3. If the program can't open the file or if no file name is entered (^d or ^z is entered for EOF), it should print an error message
3. ### Computer Science

This was the assignment: If the first parameter is less than the second parameter add the two and print the result 10 times. THIS PROGRAM IS IN JAVA. I did everything but I can't figure out how to print the result as a loop 10
4. ### Basic Computer Science

This was the assignment: If the first parameter is less than the second parameter add the two and print the result 10 times. THIS PROGRAM IS IN JAVA. I did everything but I can't figure out how to print the result as a loop 10
5. ### Computer

Home work:- Write a program to read 5 records consists of first name, last name, id and grade. Assign the grade according to the following specifications: 0<g<= 50 F 50<g<=60 D 60< g<= 70 C 70<g<=90 B
6. ### Fundamental of computer science

Pseudocode CountPositive integer totalPos,number Begin loop Input numbers If number>0 then totalPos<-totalPos +1 Loop while number<>0 Print totalPos Convert the above Pseudocode into a pascal program.
7. ### computer

A-Asking the user to pick a number between 1 and 20 and having the computer pick a number between 1 and 20 and telling the user if they won or lost B- For finding the logic error in the program C- For finding and fixing the logic
8. ### Pseudocode with sequential, selection and arrays

Analyze, design, and document a simple program that utilizes a good design process and incorporates sequential, selection and repetitive programming statements as well as at least one function call and the use of at least one
9. ### programming

Write a MATLAB program to create and output the touch-tone telephone signals (Dual-Tone, Multi-Frequency, DTMF) for the input numbers 0 through 9 (disregard the * and # symbols). When a user presses a button on a telephone set, a
10. ### Computer Programming

I posted this question before: How would I put this into one program? These are the directions: Write a method that takes two parameters. If the first parameter is equal to second parameter. Multiply both and print result. If the

More Similar Questions