WebDec 30, 2016 · Qbasic program to check the entered number is Positive, Negative or Zero. Qbasic program to print odd numbers between 1 to 25. Qbasic program to print even numbers between 1 to 25. Qbasic program to check the entered character is vowel or consonant. Qbasic program to enter any two numbers and display the HCF and LCM. Web4.Write a QBASIC program using Function ... End Function to find the HCF of two numbers. Ans. DECLARE FUNCTION HCF (A,B) INPUT”ENTER TWO NUMBERS”;A,B IF A>B THEN …
SLC / SEE Qbasic Programming With Computer Science
WebApr 10, 2024 · 10 (QBASIC) 30) Rem to find the HCF and LCM 0f two numbers . REM to print prime number between N numbers. DECLARE FUNCTION PALIN$ (N!) IF S = N THEN PALIN$ = "palindrome" ELSE PALIN$ = "NOT PALINDROME". DECLARE FUNCTION PC$ (X!) FUNCTION PC$ (X!) REM it can pass the value without using call [name and argument] e.g … WebJul 26, 2024 · 2. Accept any three different numbers and find the maximum number among them. Ans: DECLARE SUB MAX(A,B,C) CLS INPUT “Enter any three number”; A,B,C textnow new sim card
Find the Sum of the series 1/2 – 2/3 + 3/4 – 4/5 + … till N terms
WebJul 11, 2024 · QBasic consists of two windows: Program Window: The window titled as ‘Untitled’ is the program window. It is the place where program/code is written; Immediate Window: The window below Program Window titled as ‘Immediate’ is the immediate window. This window is used as a debugging tool and is used when the user wants to check the … Web70. WAP to find HCF and LCM of two input numbers. DECLARE FUNCTION hcf! (x!, y!) DECLARE FUNCTION lcm! (x!, y!) CLS DIM SHARED b INPUT "enter any two numbers"; x, y … WebAug 3, 2024 · Wap to create a function area (l,b,h) to calculate and print total surface area (tsa) of box. DECLARE FUNCTION area (l,b,h) cls. INPUT “ENTER … textnow new network