-->

Sunday, June 15, 2025

Qbasic program to know the output using dry run table | SEE computer science programming guide in Qbasic -to know the greater number

 

QBasic programs collection-Especially for SEE (Grade-10)



QBasic program to know the output of program using dry run table- to find the greater number, using sub procedure


declare sub pabson(A,b)

Cls

x = 15

y = 10

Call pabson(x, y)

Call pabson(3, 6)

End

Sub pabson (a, b)

    If a < b Then

        Print a

    Else

        Print b

    End If

End Sub








Qbasic program to get output using dry run table | SEE computer science programming guide in Qbasic -to find sum of numbers using function procedure

QBasic programs collection-Especially for SEE (Grade-10)

QBasic program to know the output of program using dry run table- to find the sum of numbers given as 1,2,3,4,5, using function procedure

declare function num(A)

Cls

For x = 1 To 5

    Read n

    s = s + num(n)

Next x

Print s

Data 1,2,3,4,5

End

Function num (a)

    num = a ^ 2

End Function

output:-


program to find the output of given program


Qbasic program to get output using dry run table and to write a program using | SEE computer science programming guide in Qbasic

 


QBasic programs collection-Especially for SEE (Grade-10)



QBasic program to convert a string into uppercase using function procedure

'wap to input a string in lowercase and convert that into uppercase

'use function procedure

declare function uppercase$(a$)

Cls

Input "ente a string"; a$

Print "string in upper case is="; uppercase(a$)

End

Function uppercase$ (a$)

    uppercase$ = UCase$(a$)


End Function