CS2259 ASCENDING ORDER - Computer Programming

Latest

C C++ Java Python Perl Programs Examples with Output -useful for Schools & College Students

Monday, March 28, 2011

CS2259 ASCENDING ORDER


ASCENDING ORDER


AIM:
            To sort the given number in the ascending order using 8085 microprocessor.

ALGORITHM:

 1. Get the numbers to be sorted from the memory locations.
 2. Compare the first two numbers and if the first number is larger than second then   I                       interchange the number.
3. If the first number is smaller, go to step 4
 4. Repeat steps 2 and 3 until the numbers are in required order




RESULT:

            Thus the ascending order program is executed and thus the numbers are arranged in ascending order.

No comments:

Post a Comment