
Modular Programming in Q BASIC Examples 2
Display the factorial of input number SUB Procedure DECLARE SUB FACT (N) CLS INPUT “Enter any number”; N CALL FACT(N) END SUB FACT (N) F = 1 FOR J = …
Modular Programming in Q BASIC Examples 2 Read MoreDisplay the factorial of input number SUB Procedure DECLARE SUB FACT (N) CLS INPUT “Enter any number”; N CALL FACT(N) END SUB FACT (N) F = 1 FOR J = …
Modular Programming in Q BASIC Examples 2 Read More1. Test whether the given number is positive or negative. SUB PROCEDURE DECLARE SUBTEST(N) CLS INPUT “Enter a number”; N CALL TEST(N) END SUB TEST(N) IF N>0 THEN PRINT N; …
Modular Programming in QBASIC Examples Read MoreModular programming. Modular programming is the process of subdividing a program into separate sub-programs. Each modular program has one main module and may have other sub modules and sub module …
Modular Programming-Introduction Read More