Question:Write down a pseuducode of three numbers by sorting with desending to assending ? 

Answer Read a,b,c

IF a<b THEN
SET temp=a,a=b,b=temp
END IF

IF a<c THEN
SET temp=a,a=c,c=temp
END IF

IF b<c THEN
SET temp=b,b=c,c=temp
END IF

PRINT a,b,c 


Deprecated: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in D:\webserver\www\vcampusbd.com\answers\column_answer_two.php on line 128
+ Report
Total Preview: 670
Write down a pseuducode of three numbers by sorting with desending to assending ?
Copyright © 2024. Powered by Intellect Software Ltd