In QBASIC, percentages can be calculated by first determining the total value or quantity that the percentage represents. Then, you can multiply this total value by the percentage you want to find, and finally divide the result by 100. This will give you the percentage of the total value. For example, to find 20% of 100 in QBASIC, you would calculate (100 * 20) / 100 = 20.
Chat with our AI personalities
this is nested if statement
cls
input"enter percent age of marks:" ,x
if x>=50 and x>=100 then
print"first division"
elseif x>=50 and x< 60 then
print"second division"
elseif x>=33 and x<50 then
print"third division"
else
print"fail"
endif
Write a program that calculates the area of a triangle in QBASIC
There is no shortcut key of input in qbasic
The different types of operators in QBASIC are:Arithmetic OperatorsRelational OperatorsLogical Operators
Qbasic and Quickbasic are not the same! Qbasic was a free interpreter that Microsoft included with MS-DOS. Although Quickbasic uses similar syntax as quickbasic it allows programs to be compiled.
the two types of data used in Qbasic is numeric data and alpha numeric data.