### ARRAY in QBASIC

Greatest among 5 numbers using Array CLS DIM num(4) PRINT "Enter any any 5 numbers" FOR j = 0 TO 4 INPUT num(j) NEXT j lrg = num(0) FOR j = 0 TO 4 IF lrg > num(j) THEN lrg …

Read More........
Skip to content
# QBasic-Basics

### ARRAY in QBASIC

### Library Functions of QBasic Examples

### IF Statement and FOR Statement in QBasic Examples

### Library Functions in QBASIC-Introduction

### QBASIC Programming- Simple

### QBASIC Statements

### Elements of QBASIC

### Introduction to Qbasic

Greatest among 5 numbers using Array CLS DIM num(4) PRINT "Enter any any 5 numbers" FOR j = 0 TO 4 INPUT num(j) NEXT j lrg = num(0) FOR j = 0 TO 4 IF lrg > num(j) THEN lrg …

Read More........Library Functions (Click Here) Convert Decimal to Binary CLS INPUT "ENTER DECIMAL NUMBER" ; D WHILE D < > 0 R = D MOD 2 S$ = STR$(R) + S$ D = D \ 2 WEND PRINT "BINARY EQUIVALENT VALUE"; S$ …

Read More........To find positive negative or zero. CLS INPUT "Enter any number" ; a IF a > 0 THEN PRINT "The number is positive" ELSEIF a < 0 THEN PRINT "The number is negative" ELSE PRINT "The number is zero" END …

Read More........Introduction: A function is a built-in formula or a ready made program which helps us to perform a certain task such as mathematical, financial, logical etc. A function manipulates data passes to it and returns either a string or a …

Read More........QBASIC Programming Sum of two numbers CLS REM To find Sum of two numbers INPUT "Enter the first number"; a INPUT "Enter the second number"; b SUM = a + b COLOR 5 PRINT TAB(5); "The sum of two number …

Read More........QBASIC Statements: Any command or the instructions in the QBASIC is called a statement. Statements are classified into executable and non-executable. Executable statement specify actions and non-executable statements specify characteristics, arrangements and initial values of data. Some of the QBASIC …

Read More........Elements of QBASIC language are: Character Set Constants Variables Operators Expressions 1.Character Set: The set of valid characters that a language can be recognize. A character include alphabets, numbers and special characters. 2. Constants: The data items that never change …

Read More........BASIC stands for Beginners’ All purpose Symbolic Instruction Code which is one of the most popular high level language developed in the year 1964 at Darmouth College -United Stated of America by Prof. John Kemeny and Thomas Kurtz. It is …

Read More........