Monday, September 30, 2019

Greatest among three no using sub

DECLARE SUB GREAT(A,B,C)
CLS
INPUT"ENTER FIRST NO";A
INPUT"ENTER SECOND NO";B
INPUT"ENTER THIRDTHIRD NO";C
CALL GREAT(A,B,C)
END

SUB GREAT(A,B,C)
IF A>B AND A>C THEN
PRINT"THE GREATEST NO IS";A
ELSEIF B>C ANDB>A THEN
PRINT"THE GREATEST NO IS";B
ELSE
PRINT"THE GREATEST NO IS";C
END IF
END FUNCTION

No comments:

Post a Comment

Experience of covid-19 and cancelling SEE exam

A dangers virus called corona also know as COVID-19 took place around the world. This virus was first found in Wuhan china.this virus start...