computer application

Algorithm to print all even numbers below hundred in the descending order

  1. 👍
  2. 👎
  3. 👁
  1. for i = 100 to 0 step -2 ; print i;

    assuming you don't want to go on forever with the negative ones ...

    1. 👍
    2. 👎
  2. Algorithm to print all even numbers below 100 in the descending order.

    1. 👍
    2. 👎

Respond to this Question

First Name

Your Response

Similar Questions

  1. computer

    draw a flowchart and write the algorithm for printing the first 10 even numbers

  2. Pseudocode

    Write an algorithm and pseudocode that represents a program that allows a user to enter two numbers. Your program should calculate the sum, difference (both directions), product, and quotient (both directions) of the two numbers.


    Write an algorithm and flowchart that will accept score of 30 student in a class calculate and print the average mark in basic program.

  4. Algorithm

    write a pseudo code algorithm that will accept 20 numbers and finds their product

  1. pseudocode programming

    Develop an algorithm or write pseudocode to determine if a citizen is eligible to vote. The criteria for eligibility are that the citizen must be 18 or older and must not be a convicted felon. The algorithm must continuously

  2. programming

    1. Write a structured algorithm that prompts the user to input two numbers. The algorithm should calculate and print the sum & product of the two numbers [21/2]

  3. math

    All prime numbers less than ten are arranged in descending order to form a Number. (a) Write down the number formed 2, 3, 5, 7 (b) State the total value of the second digit in the number formed in (a) above

  4. computer applications (commerce)

    draw a flow chart to print odd numbers below 20 in descending order

  1. programming

    3. Write a structured algorithm that prompts the user to input the name and the price of an item and the quantity purchased. It should print the name, price, quantity and amount due with appropriate labels.

  2. Math

    A framer at a photo gallery wants to frame a print with a matte of uniform width all around the print. To make it pleasing to the eye, the area of the matte should equal the area of the print. If the print measures 40 cm by 60 cm,

  3. math

    A number m is formed by writing all the prime numbers between 0 and 10 in an ascending order. Another number n is formed by writing all the square numbers between 0 and 10 in a descending order. (a) Find m - n; (b) Express (m - n)

  4. Algebra 1 polynomials

    Write the polynomial in descending order by the exponents of the x terms 8x^2+4-5ax^3+6a^2x

You can view more similar questions or ask a new question.