answersLogoWhite

0


Best Answer
AnswerIf A=10, B=2...

Then the algoritm is :-

STEP1 : START.

STEP2 : A=10.

STEP3 : B=02.

STEP4 : C=A-B.

STEP5 : PRINT C.

STEP6 : STOP.

AnswerYou cannot print every even number in descending order, because there is no greatest even number. Or you want something like this:

infinity

infinity-2

infinity-4

Answerstep 1: start

step 2: Input N

step 3: If N<=1, go to step 5

step 4: if N%2=0, Print N

N=N-1, go to step 3

step 5: End

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

write an algorithm to print first N even numbers

This answer is:
User Avatar
User Avatar

Mahal T

Lvl 1
2y ago
Super

Add your answer:

Earn +20 pts
Q: Write a algorithm to print all even numbers in descending order?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What does descending mean in maths?

In Maths, we often talk about ascending and descending order. Ascending order is writing numbers from smallest to largest. Descending order is writing numbers from largest to smallest.


In a selection sort when changing from ascending to descending order only---------- modifications need to be made to the algorithm?

Change every "&lt;" to "&gt;" and "&gt;" to "&lt;" .


Sort the array of integers in Descending order?

Make use of Java's robust library: // filled with various ints int[] a; // temporary variable for swapping values int temp; // sort with fast, built-in algorithm java.util.Arrays.sort(a); // reverse the array for( int i = 0; i &lt; a.length/2; ++i ) { temp = a[i]; a[i] = a[a.length - i - 1]; a[a.length - i - 1] = temp; } Obviously, if you're concerned with execution speed you could write your own sort method which would sort into descending order instead of ascending order (perhaps by modifying Java's sort algorithm).


What is use of sorting algorithm?

sorting means arranging a list of numbers or elements in an order (ascending or descending).


Algorithm and flow chart of the program for ascending and descending order of numbers?

Use a looping structure. The first step initialises a loop control variable, n, to zero. You then begin the loop by processing the nth element from the array (the process may be a simple print statement). You then increment n. Finally, you test the value of n; if it is less than 10 you start a new iteration of the loop, otherwise you proceed to the end of the flowchart.

Related questions

Write an Assembly language program which implements sorting algorithm both ascending and descending order and display those numbers with certain delay say of 5sec between successive displays?

das


Write a c programme to print all the even numbers in descending order?

#include(stdio.h) int main ()


Is descending order from high to low?

Numbers are said to be in descending order when they are arranged from the largest to the smallest number.


What does descending mean in maths?

In Maths, we often talk about ascending and descending order. Ascending order is writing numbers from smallest to largest. Descending order is writing numbers from largest to smallest.


When numbers are largest to smallest?

descending order


Which way is ascending and descending?

Ascending order is when numbers are arranged from the smallest to the largest. Descending order is when numbers are arranged from the largest to the smallest.


In a selection sort when changing from ascending to descending order only---------- modifications need to be made to the algorithm?

Change every "&lt;" to "&gt;" and "&gt;" to "&lt;" .


To write a polynomial in standard form write the exponents of the in descending order?

Terms


Give two paragraph descending order?

First, decide on the paragraphs that you would like to use. Write them out in the descending order that you want.


What are the numbers with the digits in descending order?

There are too many to enumerate.


X 2-4 descending order?

6


What is data organized in ascending or descending order?

The data that is being organized in ascending or descending order is the numbers or the alphabet. Ascending means is from lowest to highest and descending means from highest to lowest.