| 1. |
Write a qbasic program to find out the maximum number from two given number |
|
Answer» CLS CLSINPUT "ENTER two number"; a, b CLSINPUT "Enter two number"; a, BIF a > b THEN CLSINPUT "Enter two number"; a, bIF a > b THENPRINT a; "is greatest number" CLSINPUT "Enter two number"; a, bIF a > b THENPRINT a; "is greatest number"PRINT b; "is LOWEST number" CLSINPUT "Enter two number"; a, bIF a > b THENPRINT a; "is greatest number"PRINT b; "is lowest number"ELSE CLSINPUT "Enter two number"; a, bIF a > b THENPRINT a; "is greatest number"PRINT b; "is lowest number"ELSEPRINT b; "is greatest number" CLSINPUT "Enter two number"; a, bIF a > b THENPRINT a; "is greatest number"PRINT b; "is lowest number"ELSEPRINT b; "is greatest number"PRINT a; "is lowest number" CLSINPUT "Enter two number"; a, bIF a > b THENPRINT a; "is greatest number"PRINT b; "is lowest number"ELSEPRINT b; "is greatest number"PRINT a; "is lowest number"END IF CLSINPUT "Enter two number"; a, bIF a > b THENPRINT a; "is greatest number"PRINT b; "is lowest number"ELSEPRINT b; "is greatest number"PRINT a; "is lowest number"END IFEND |
|