CLS
Input 'Enter you name';n$
Print 'The name is';n$
End
2)Write a program to enter your name, city, country, age and print them.
CLS
Input " Enter the name ";N$
Input " Enter the city";C$
Input " Enter the country";CO$
Input " Enter the age";A
Print " The name is ";N$
Print " The city is ";C$
Print " The country is ";CO$
Print " The age is ";A
End
3)Write a program to find the area of rectangle.
Cls
Input " enter the length " ;l
Input " enter the breadth " ;b
let A = l*b
Print" the area of rectangle=" ;a
End
4)Write a program to find the area of the triangle.
Cls
Input " enter the base" ;b
Input " enter the height" ;h
let T = 1/2*b*h
Print" The area of triangle=" ;T
End
5)Write a program to find the area of the circle.
Cls
Input" Enter the radius " ;R
Let C=22/7*R^2
Print " The area of circle =" ;C
End
6)Write a program to find the circumference of the circle.
Cls
Input" Enter the radius " ;R
Let Circumference=22/7*R*2
Print " The area of circle =" ;Circumference
End
7)Write a program to find the area of the square.
Cls
Input" Enter the number" ;n
Let square= n^2
Print" The area of square=" ;Square
End
8)Write a program to find the area of the square and cube.
Cls
Input" Enter the number" ;n
Let square= n^2
Let Cube = n^3
Print" The area of square=" ;Square
Print" The area of cube=" ; Cube
End
9)Write a program to find the volume of the box.
Cls
Input " enter the length " ;l
Input " enter the breadth " ;b
Input " enter the height " ;h
Let Volume= l*b*h
Print" The volume of box =" ;Volume
End
10)Write a program to convert the weight from kilogram to pounds.
CLS
Input"Enter the weight in kilogram";K
Let P=K*2.2
Print "The pound is ";P
End
11)Write a program to convert the distance from kilometer to miles.
Cls
Input"Enter the length in kilometer";K
Let M= K / 1.6
Print "The length in miles =";M
End
12)Write a program to convert the distance from miles to kilomiles.
Cls
Input " Enter the length in miles";M
Let K=M*1.6
Print" The length in kilo miles=";K
End
13)Write a program to enter the initial mileage(m1) and final mileage (m2) then calculate the distance traveled.
CLS
Input "Enter the Initial Mileage";M1
Input "Enter the Final Mileage";M2
Let D= M2-M1
Print " The distance covered=";D
End
14)Write a program to find out the simple Interest.
Cls
Input " Enter the Principal";P
Input " Enter the Rate";R
Input " Enter the Time";T
Let I = P*T*R/100
Print " The simple Interest = ";I
End
15)Write a program to find out the simple Interest and the Amount.
Cls
Input " Enter the Principal";P
Input " Enter the Rate";R
Input " Enter the Time";T
Let I = P*T*R/100
Let A= P + I
Print " The simple Interest = ";I
Print " The amount=";A
End
16)Write any number and find it's half.
Cls
Input "Enter the desired number "; N
Let H = N/2
Print "The half of the number = ";H
END
17)Write a program to find the area of four walls of a room.
Cls
Input"Enter the height ";H
Input"Enter the length "; L
Input"Enter the Breadth";B
Let A= 2 * H * (L+B)
Print " The area of four walls =";A
End
18)Write a program to find the perimeter of a rectangle.
Cls
Input " enter the length " ;l
Input " enter the breadth " ;b
Let P=2*(l+b)
Print" The perimeter of rectangle=" ;P
End
19)Write a program to enter any three numbers,sum and the average.
Cls
Input " Enter any number" ;A
Input " Enter any number" ;B
Input " Enter any number" ;C
Let Sum = A+B+C
Let Average =Sum/3
Print" The sum=" ;Sum
Print" The Average is " ;Average
End
20)Write a program to enter any two numbers their Sum,Product and the Difference.
CLS
Input " Enter any number" ;A
Input " Enter any number" ;B
Let Sum = A+B
Let Difference= A-B
Let Product = A*B
Print" the sum =" ;Sum
Print" the Difference =" ;Difference
Print" the Product =" ; Product
End
21)Write a program to find the average of three different numbers.
Cls
Input" Enter the number " ;A
Input" Enter the number " ;B
Input" Enter the number " ;C
Let Avg= (A+B+C)/3
Print" The average=" ;Avg
End
22)Write a program to input student's name,marks obtained in four different subjects,find the total and average marks.
Cls
Input" Enter the name " ;N$
Input" Enter the marks in English" ;E
Input" Enter the marks in Maths" ;M
Input" Enter the marks in Science" ;S
Input" Enter the marks in Nepali" ;N
Let S=E+M+S+N
Let A=S/4
Print " The name of the student is" ;N$
Print " The total marks is" ;S
Print " The Average marks" ;A
End
23)Write a program to find 10%,20% and 30% of the input number.
Cls
Input" Enter any number" ;N
Let T=10/100*N
Let Twe=20/100*N
Let Thi=30/100*N
Print " 10%of input number=" ;T
Print " 20%of input number=" ;Twe
Print " 30%of input number=" ;Thi
End
24)Write a program to convert the distance to kilometer to miles.
Cls
Input" Enter the kilometer" ;K
Let M=K/1.6
Print " The miles = " ;M
End
25)Write a program to find the perimeter of square.
Cls
Input “Enter the length”; L
Let P =4 * L
Print “ The perimeter of square=”;P
End
26)Write a program to enter the Nepalese currency and covert it to Indian Currency.
CLS
Input “Enter the Nepalese currency” ;N
Let I = N * 1.6
Print “the Indian currency=”;I
End
27)Write a program to enter the Indian currency and covert it to Nepalese Currency.
CLS
Input “Enter the Indian currency” ;N
Let N = I / 1.6
Print “the Nepalese currency=”;I
End
28)Write a program to enter any number and find out whether it is negative or positive.
CLS
Input “Enter the number”; N
If N>0 Then
Print “ The number is positive”
Else
Print “The number is negative”
EndIf
End
29)Write a program to enter any number and find out whether it is even or odd using select case statement.
Cls
Input “Enter any number” ;N
R=N mod 2
Select case R
Case = 0
Print “The number is Even number”
Case Else
Print “The number is odd number”
End Select
End
30)Write a program to check the numbers between 1 & 3.
Cls
Input “Enter the numbers between 1-3”;N
Select case N
Case 1
Print “It’s number 1”;
Case 2
Print “It’s a number 2”;
Case 3
Print “It’s a number 3”
Case else
Print “It’s out of range”;
End select
End
31)Write a program to enter any alphabet and test alphabet is ‘a’ or not using the select case statement.
Cls
Input “Enter the alphabet”;A$
A$=UCase$ (A$)
Select Case A$
Case ‘A’
Print “It’s alphabet A”
Case Else
Print “It’s not alphabet A”
End Select
End
32)Write a program to enter any alphabet and find out whether the number is vowel or alphabet.
Cls
Input “Enter Letters/Alphabet”;A$
A$ = UCase $ (A$)
Select case A$
Case “A”, “E”, “I”, “O”, “U”
Print “Its’ a vowel”
Case Else
Print “ It’s not a vowel”
End Select
End
33)Generate the following numbers using For….Next…..Loop.
1,2,3,4,…,50
CLS
For I = 1 to 50 Step 1
Print I
Next I
End
34)Generate the following numbers using For….Next…..Loop.
1,3,5,7,9,....99
Cls
For I = 1 to 99 Step 2
Print I
Next I
End
35)Generate the following numbers using For….Next…..Loop.
2,4,6,8,10,…50
Cls
For I = 2 to 50 Step 2
Print I
Next I
End
36)Generate the following numbers using For….Next…..Loop.
1,3,5,7,…99
ClsFor I = 1 to 99 Step 2
Print I
Next I
End
37)Generate the following numbers using For….Next…..Loop.
5,10,15,…90
Cls
For I = 5 to 90 Step 5
Print I
Next I
End
38) Generate the following numbers using For….Next…..Loop.
10,20,30,40,…100.
Cls
For I = 10 to 100 Step 10
Print I
Next I
End
39)Write a program to print numbers stated below USING WHILE…WEND STATEMENT.
Cls
I = 1
While I<=100
Print I ;
I = I + 1
WEND
END
40)Generate the following numbers using For….Next…..Loop.
2,4,6,8,10….50
CLS
I = 2
While I < =50
Print I;
I = I + 2
WEND
END
41)Write a program to print numbers stated below USING WHILE…WEND STATEMENT.
1,3,5,7,9,…99
CLS
I = 1
While I <=99
Print I;
I = I + 2
WEND
END
42)Write a program to print numbers stated below USING WHILE…WEND STATEMENT.
1,4,9,…upto 10th term.
CLS
I=1
While I < =10
Print I^2;
I = I + 1
WEND
END
*Please comment if you find anything wrong.Thank You.
Copyright.
Do you think you could help me write some Qbasic statements? I have a final due tomorrow and i am so lost!
ReplyDeleteYeah, i can help, XD
Deletethank u soo much this is so useful for my test but i needed two more
ReplyDeleteTHANK YOU SOOOO MUCH!!
ReplyDeleteI seriously don't get QBASIC and I was absent when my teacher taught us how to do some programs. I'm gonna ace my final!! =)
need some more. please include code and its descriptions also
ReplyDeletehow bout statements for calculating average?
ReplyDeletethank you i have learned program which is more useful to me add more program to develop the skill on qbasic
ReplyDelete5
ReplyDelete55
555
5555
55555
555555
5555555
55555555
And
NEPAL
NEPA
NEP
NE
N
Will you help me to solve this two program please
CLS
DeleteA=5
For I =1 to5
Print A;
A=A*10+4
Next I
End
Input "enter ur score for math", a
Deleteinput"enter ur score for English ", b
input "enter ur score for chemistry ", c
input "enter ur score for agric", d
input "enter ur score for economic ", e
input "enter ur score for statistics ", f
let sum=a+b+c+d+e+f
let av=sum/6
Print sum; av
end
5
Delete55
555
5555
55555
555555
5555555
55555555
FOR I = 1 TO 8
FOR J = 1 TO I
PRINT "5";
NEXT J
NEXT I
This helped me a lityle but I will suggest to take iswas from this and understand the test from book.THANK YOU=:-).
DeleteCLS
ReplyDeleteA$="55555555"
for i=1 to len(A$)
PRINT left$(A$,I)
next
end
----------------------------------------------------------------------------------------------------------------
CLS
A$="NEPAL"
FOR i=len(A$) to 1 step -1
print left$(A$,I)
next
end
CLS
ReplyDeleteA$="55555555"
for i=1 to len(A$)
PRINT left$(A$,I)
next
end
----------------------------------------------------------------------------------------------------------------
CLS
A$="NEPAL"
FOR i=len(A$) to 1 step -1
print left$(A$,I)
next
end
This comment has been removed by the author.
ReplyDeletePlease help me to make a calculator that can convert celsius to fahrenheit and vice versa....
ReplyDeleteREM *** By Giorgio, Italy ***
DeleteCLS
2000 PRINT "Convert Celsius to Fahrenheit and vice versa"
PRINT
PRINT "1) " + CHR$(248) + "C --> " + CHR$(248) + "F"
PRINT "2) " + CHR$(248) + "F --> " + CHR$(248) + "C"
PRINT "3) Exit"
PRINT
INPUT "Type 1,2 or 3 ", a
PRINT
IF a = 1 THEN GOSUB 3000
IF a = 2 THEN GOSUB 4000
IF a = 3 THEN END
GOTO 2000
3000 REM *** c to f ***
CLS
INPUT "Type Celsius ", C
F = C * 1.8 + 32
PRINT
PRINT C, CHR$(248) + "C = ", F, CHR$(248) + "F"
PRINT
RETURN
4000 REM *** f to c ***
CLS
INPUT "Type Fahrenheit ", F
C = (F - 32) / 1.8
PRINT
PRINT F, CHR$(248) + "F = ", C, CHR$(248) + "C"
PRINT
RETURN
Make a program to enter the marks of five subject and their total and average
DeleteMake a program to enter the marks of five subject and their total and average
DeleteCLS
DeleteINPUT "ENTER THE MARKS OF SUBJECT 1"; A
INPUT "ENTER THE MARKS OF SUBJECT 2"; B
INPUT "ENTER THE MARKS OF SUBJECT 3"; C
INPUT "ENTER THE MARKS OF SUBJECT 4"; D
INPUT "ENTER THE MARKS OF SUBJECT 5"; E
SUM = A + B + C + D + E
AVERAGE = (A + B + C + D + E) / 5
PRINT "TOTAL="; SUM
PRINT "AVERAGE="; AVERAGE
END
CLS
Delete'We will input 5 subjects
INPUT "Enter marks of 1st Subject";a
INPUT "Enter marks of 2nd Subject";b
INPUT "Enter marks of 3rd Subject";c
INPUT "Enter marks of 4th Subject";d
INPUT "Enter marks of 5th Subject";e
'Mathmatical Formulas
LET add = a + b + c + d + e
LET aver = (a + b + c + d + e) / 5
PRINT "The total is: ";add
PRINT "The average marks is: ";aver
END
This is very useful
ReplyDeleteThis is very useful
ReplyDeleteplease somebody should help me to write an algorithm to compute n! (N-Factorial)...
ReplyDeleteREM *** By Giorgio, Italy ***
DeleteCLS
2000 PRINT "Calcola fattoriale - N!"
PRINT
n = 1
INPUT "Type a number, 0 for Exit ", a
PRINT
IF a < 1 THEN END
FOR l = 1 TO a
n = n * l
NEXT l
PRINT n
PRINT
GOTO 2000
Please can you help me with this one
ReplyDelete*
***
*****
*******
*********
*******
*****
***
*
Please can you help me with this one
ReplyDelete*
***
*****
*******
*********
*******
*****
***
*
cls
Deletem$="*******"
for a= 1 to 7
print left$ (m$,a)
next a
m$="******"
for a=4 to 1 step -1
print left$(m$,a)
next a
end
can u give discription of syntax"sel" and some programs of "mid$(1,l) etc.
ReplyDeletethank u by the way this is very helpful
Please help me . Complete this statement
ReplyDelete____x=5_____print x
Please help me
ReplyDelete1 2 3 5 8... Upto 10th term
He ADmin MAke your Blogspot. Really Attractive By Your Template Like I Have
ReplyDeletehttps://koolproduction.blogspot.com
In question number 28th the line: If N>0 Then is not properly.
ReplyDeleteIam doing the same thing but my computer shows the error. why is it so.
write a program to enter a number and find and print the number of digits present in the number and also print the digits which are prime.
ReplyDeleteplease help me to solve this program using while wend loop.
Very useful... but also add programms for calculation such as prime nos. Odd nos squares etc
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteTHERE'S A PROBLEM IN PROGRAM NO. 32 AS THERE ARE 2TIMES THIS A VOWEL
ReplyDeleteWRITE A PROGRAM TO ADD 2 ARRAYS AND STORE IN THE THIRD ARRAY.
ReplyDeletei need one more right now to find ticket fair required to be paid according to the age of passenger please
ReplyDeletewrite a qbasic program that find the avrage age of 10 students using do loop
ReplyDelete54321
ReplyDelete4321
321
21
1
and
12345
2345
345
45
5
and
5
54
543
5432
54321
pls help me with writing programs for these output
This comment has been removed by the author.
ReplyDeleteThanks for the questions and solutions. I want to use it for my students in pascal and fortran and this is simply helpful. thanks
ReplyDeleteIt has some problem that it does not show the output
ReplyDeleteThanks..
ReplyDeleteCan you please tell me how to generate the series of 11,22,33,44...up to 10 terms...???
ReplyDeletePlease answer me..
DeletePlease answer me..
DeleteCLS
Deletea=11
For i = 1 to 10
Print a;
a=a+11
Next i
END
My question is
ReplyDeleteWrite a program to find the SUM and PERCENTAGE of any 4 NOS using the INPUT STATEMENT
Thank You So Much Sir. i Got Confused When My Little Sis asked To Do Some Program On QBasic But thanks to God That Your Blog Helped me in order to solve some of her problem.
ReplyDeleteplease someone should help me in writing a program on how to generate factorial numbers using qbasic.......thanks
ReplyDeletethis help me to write well in exams
ReplyDeleteCOOL... thanks to You for designing this website, now I know where my mistake is from...
ReplyDeleteCOOL... thanks to You for designing this website, now I know where my mistake is from...
ReplyDeleteHey guys ca you solve this qbasic problem:
ReplyDeleteDisplay the given series
000
111
0
1
000
111
Solve it thank you
WAP to input 2 num and find the greatest among them. How to do this ?
ReplyDeleteRem +++++++++++++++++++++++++++++++
DeleteRem Shusma
Rem
Rem CodeAide
Rem +++++++++++++++++++++++++++++++
Locate 7,5
input "Enter Your First of 2 Numbers: ",FirstNum
Locate 9,5
input "Enter Your Second Number: ",SecondNum
If FirstNum > SecondNum Then Print, FirstNum" is the greater number
If SecondNum > FirstNum Then Print, SecondNum" is the greater number
wap to find reverse of a number
ReplyDeletefor N = 15 to 1 STEP -2
DeletePRINT N
NEXT N
END
Very useful. My kid sister was on my neck and i need to solve one more, i don't know if you can help out with that one.
ReplyDeleteTO FIND THE VOLUME OF A CYLINDER?
someone please help with this: write a simple basic program to achieve the following a.Finding the mean of five numbers. b.finding the volume of a cylinder. thank you
ReplyDeleteCan any one help me in below mentioned programs
ReplyDelete1. Write a program to accept the value for X and solve the following algebraic equation
3 X square +X +4
X square +X+5
2. Write a program to accept a radius of a circle and calculate circumference. Display the
values
3. W.A.P to accept rate and quantity of an item . calculate the total price, 12% discount on the
total price , net amount using the formula given below. Display all values
4. W.A.P to accept the value to be converted into Z also accept the rate of conversion for
pounds and US dollars perform the conversion. Display all values
5.W.A.P to solve the algebraic equation
need some more programs please relating string functions quick my exams are on my head
ReplyDeleteI don`t like it!
ReplyDeleteI love it!
Very useful site !
Can any one help me ...
ReplyDelete1 square + 2 square + 3 square...upto N square
please help me
Deleteplease reply me
ReplyDeletewap to display first 10 natural numbers using if then go to.
ReplyDeleteThis comment has been removed by the author.
DeleteWrite a program to accept the cost price and selling price of an article, if the selling price is more than the cost price then calculate actual profit and profit percent, otherwise actual loss and loss percent.
ReplyDeletePlease reply as soon as possible thanks
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
Deletecan u give me 2 QBASIC statement about ELSE IF????
ReplyDeleteCan I get 5 else if statement and 10 select case statement
ReplyDelete,5 qbasic else if statement and 10 select case statement
ReplyDeleteplease help me to solve 1,4,9,16,25 using For next loop
ReplyDelete1,4,9,1625
ReplyDeletecls
for i= 1 to 5
print i^2
next
end
wap that asls any string value and dispaly its reverse
ReplyDeletecan u help me solve thhis series
ReplyDelete1
22
333
This comment has been removed by the author.
DeleteCLS
DeleteFOR I = 1 TO 3
FOR J = I TO 1 STEP -1
PRINT I;
NEXT J
PRINT
NEXT I
END
write a program to input day of week in number and then display in character such as 1 for sunday, 2 for monday etc in qbasic
ReplyDeletewrite a program to check entered number is positive ,negative or neutral in qbasic
ReplyDeleteCLS
ReplyDeletea = 1
FOR i = 1 TO 5
FOR j = 1 TO i
PRINT a;
a = a + 1
NEXT j
PRINT
NEXT i
END
Help me 1+2+3=6
ReplyDeletehelp me!!!!with this one
ReplyDelete1
12
123
1234
12345
123456
1234567
12345678
123456789
help me!!!!with this one
ReplyDelete1
12
123
1234
12345
123456
1234567
12345678
123456789
CLS
DeleteFOR i = 1 TO 9
FOR j = 1 TO i
PRINT j;
NEXT j
PRINT
NEXT i
END
CLS
DeleteFOR i = 1 TO 9
FOR j = 1 TO i
PRINT j;
NEXT j
PRINT
NEXT i
END
Check if higher than 100 help me
ReplyDeletecls
ReplyDeleteinput "enter a number";m
if m > 100 then print "hihger than 100"
if m < 100 then print"less than 100"
else print "the number is 100"
end
cls
ReplyDeleteinput "enter a number";m
if m > 100 then print "hihger than 100"
if m < 100 then print"less than 100"
else print "the number is 100"
end
write a program to ask the user to enter 2 natural nos. and then display the square of the difference.
ReplyDeletepls solve this program for me now as i have teast tomorrow morning
write a program to ask the user to enter 2 natural nos. and then display the square of the difference.
ReplyDeletepls solve this program for me now as i have teast tomorrow morning
plz send me a program for tax variables-basic price tax if tax is 5/
ReplyDeleteplz send me a program for tax variables-basic price tax if tax is 5/
ReplyDeleteDisplay the following series 2,4,6,8..... up to 10th term. Could you plz tell me this answer I'm having a problem
ReplyDeleteThis comment has been removed by the author.
ReplyDeletecan someone help me with this one!!!!!
ReplyDelete11235813................100
thanks it has helped me a lot for tomorrow's examine.
ReplyDeleteThank you..but it would be also very useful if you write any qb64 mod programme.
ReplyDeleteWrite a program on moving text pls
ReplyDeleteWrite a program on moving text pls
ReplyDeleteprint prime numbers in the range of 1 to 50 using the FOR..NEXT Loop statement Display all letters from A to Z using FOR.. NEXT Loop can some one help me with this Thanks in Advance
ReplyDeletePlease can someone help me with this program:
ReplyDeleteDisplay all the letters from A-Z using the FOR.....NEXT loop statement.
@ Vivian Herbert For printing Prime numbers in range of 1 to 50 this is the program:
ReplyDeleteCLS
PRINT
FOR I=1 TO 50
COUNT=0
FOR J=1 TO I
IF (I MOD J=0) THEN
COUNT=COUNT+1
END IF
NEXT
IF COUNT=2 THEN
PRINT I
END IF
NEXT
END
@ Vivian Herbert For printing Prime numbers in range of 1 to 50 this is the program:
ReplyDeleteCLS
PRINT
FOR I=1 TO 50
COUNT=0
FOR J=1 TO I
IF (I MOD J=0) THEN
COUNT=COUNT+1
END IF
NEXT
IF COUNT=2 THEN
PRINT I
END IF
NEXT
END
Very useful
ReplyDeleteVery useful
ReplyDeleteW.A.P to assign the element in two arrays having 3 rows n 3 columns .The 3rd shoukd contain the sum of 2 array
ReplyDeletePlease help me to make a calculator that can find hypotenus of a right angle triangle
ReplyDeletePlease tell me how to print multiplication table of 5 to 50 in a single program using wild when loop
ReplyDeletePlease tell me how to print multiplication table of 5 to 50 in a single program using wild when loop
ReplyDeleteI love these programs for QBASIC!!!!!!
ReplyDeleteCan someone help me with this: Write a QBASIC program to generate thirty random integer number distributed btw 20 n 50. Ur program shld ensure that no number is repeated.
ReplyDeleteI want to print a program of first ten multiples of 6,7,8.
ReplyDeletePls give the program fast
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteWrite a program to generate the following series
ReplyDelete*****
****
***
**
*
wap to print the sum of series: 1+4+9+16+...100
ReplyDeleteWhat is the solution to display the flag of Nepal?
ReplyDelete*
**
***
****
*****
******
*******
*
**
***
****
*****
******
*******
**
**
**
**
Pls tell me how to make program to print the report cards of 30 students using q basic
ReplyDeleteA person is allowed to get a driving license only after the age of 18. write a program to accept the age of a person and display whether he should be given a license or not
ReplyDeleteThis comment has been removed by the author.
DeleteSQR (-16)
ReplyDeleteCan you give me this ones output?
display 4,5,9,14,23 upto 10th term
ReplyDeleteim having a problem with this program
ReplyDeleteHelp me with this. Write QBASIC program to generate 30 random integer numbers distributed between 20 an 50.
ReplyDeletecan u help me with this. write a qbasic program to input ten numbers and print only the odd numbers.
ReplyDeletePlease tell me how to write the sum of table of 3 till ten. 3+6+9.........+30
ReplyDeletePlease tell me how to write the sum of table of three. 3+6+9+12+........+30
ReplyDeletePlz help me by solving this
ReplyDelete1
2 6
3 7 10
4 8 11 13
5 9 12 14 15
please help me solving this
ReplyDelete2
24
246
2468
246810
CLS
ReplyDeleteA=5
For I =1 to 8
Print A
A=A*10+5
Next I
End
please tell me how to get the multiples of a number which is inputted by the user
ReplyDelete12345
ReplyDelete22345
33345
44445
55555
How to find the sum and average of five number
ReplyDeleteREM TO FIND THE SUM AND AVERAGE OF FIVE NUMBER
DeleteCLS
INPUT "ENTER THE FIVE NUMBERS"; M1, M2, M3, M4, M5
LET TOTAL = M1 + M2 + M3 + M4 + M5
LET AVG = TOTAL/5
PRINT "THE EQUIVALENT SUM AND AVERAGE IS"; TOTAL, AVG
END
Please tell me how to write a program to calculate the sum of positive and negative numbers if user has to enter 10 numbers
ReplyDeletePlease i need help with this...
ReplyDeleteWrite a program that will take two members A & B and print out all the multiples of A from A. If B<=0, then no multiples will be printed
Please answer me;
ReplyDeleteInput a complete date of birth of a person and compute his or her current age in sub end sub procedure.
Can you answer me the question:6,11,21,36,56....10 terms
ReplyDeleteHelp me find the answer of to print first ten multiples of 6,7,and 8 in a creative way
ReplyDeleteplease help me to write a program to display
ReplyDelete2 5 10 17 26 up to 12th term
please answer me
ReplyDeleteTo print the following numeric series
ReplyDelete3,33,333,3333,33333
These are very helpful please answer my question dai
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteMy question is how to write a program for integers
ReplyDeleteThis comment has been removed by the author.
ReplyDeletewap to display the first 10 terms of the series 3,6,12,24 using for-next and while-wend loop in qbasic.
ReplyDeleteplz help me
ReplyDeleteprint the qbasic program of series
1
2 6
3 7 10
4 8 11 13
5 9 12 14 15
PLZ FAST REPLY ME BRO U WILL BE THANK FUL I NEED FAST
DeleteWRITE A PROGRAM TO ENTER THE AGE OF THE FATHER.AGE OF THE SON.AGE OF THE SON IS TWO TIMES LESS THAN HIS FATHER'S AGE.PRNT THE AGE OF THE FATHER AND THE SON
ReplyDeleteadmin please,
ReplyDeletea wage rate paid to a casual employee of a certain construction company is 175 naira per hr.
write a single Qbasic program to compute the wage earned by an employee named paul who worked for a total of 68hrs 27mins. print out the name of the employee and the wage
Write a program to read names of 5 students and print them in reverse order.(using READ DATA statement) plz.
ReplyDeleteits very much helpful for the schooling students
ReplyDeletehow to wap to find if a year is leap year or not
ReplyDeleteYour Programm
DeleteDIM X, Y, Z, YEAR
INPUT "PLEASE INPUT YEAR"; YEAR
X = YEAR MOD 4
Y = YEAR MOD 100
Z = YEAR MOD 400
IF ((X = 0 AND NOT (Y = 0)) OR Z = 0) THEN
PRINT "THIS IS A LEAP YEAR"; YEAR
ELSE
PRINT "THIS IS NOT LEAP YEAR"; YEAR
END IF
END
Please Follow my blog
www.hinditutorpoint.blogspot.com
Help me to generate this series 11 22 33 44 up to 10 terms
DeleteThis comment has been removed by the author.
DeleteCLS
DeleteFOR I=1 TO 10
A=I*10+I
PRINT A;
NEXT I
END
to print number 1,3,6,10,15,21,28,36,45,55
ReplyDeleteto print number 1,3,6,10,15,21,28,36,45,55
ReplyDeleteto print number 1,3,6,10,15,21,28,36,45,55
ReplyDeleteCLS
DeleteA=1
FOR I =2 TO 11
PRINT A;
A=A+I
NEXT I
END
to print number 1,3,6,10,15,21,28,36,45,55
ReplyDeleteWrite a program that stores name and telephone numbers of any 10 persons in a double dimension array. The program accepts a name of a person and displays corresponding telephone number
ReplyDeleteWrite a program to display time in hours and convert time into minutes as well as seconds.
ReplyDeleteHello Dear Please Follow this link get your answer
Deletehttp://bloghindisupport.blogspot.com/2017/05/convert-time-program-in-qbasic.html
Write a program to obtain (0-100) made by 20 student in a course from the user. The pass mark is 50 and above. Let the program find out the percentage of the students that passed the course and the class average score. Display useful message at the end of the computations.
ReplyDeleteKATHMANDU
ReplyDeleteATHMAND
THMAN
HMA
M
plz solve it..ANYONE THANK U
write a program to input any number and print only composite number
ReplyDeleteCLS
DeleteINPUT"ENTER NUMBER";A
FOR I= 2 TO A-1
IF A MOD I=0 THEN
R=3
END IF
NEXT I
IF R=B THEN
PRINT "IS COMPOSITE"
else
print"is prime"
end if
end
Thank you. I learnt a lot from this page.
ReplyDeleteQ 28. If we input 0, then it says 'the number is negative'. But 0 is not negative!
how do we make this one
ReplyDelete*
**
***
****
*****
CLS
DeleteS$ = "*****"
M = LEN(S$)
FOR I = 1 TO M
SUB$ = LEFT$(S$,I)
PRINT SUB$
NEXT I
END
How do you generate 0.3,0.33,0.333,0.3333 .... Upto 9th term
ReplyDeleteCLS
DeleteA = 0.3
N = 1
TOP:
PRINT A
A = A/10
N = N + 1
IF N less than symbol= 9 THEN GOTO TOP
End
*PRINT A;
Deletewrite a program to input a number and display table upto
ReplyDelete10th terms.
CLS
DeleteINPUT "ENTER ANY NUMBER"; X
FOR Y = 1 TO 10
TABLE = X * Y
PRINT X; "*"; Y; "="; TABLE
NEXT Y
END
write a program to enter any three different numbers and display the greatest number
ReplyDeleteThis comment has been removed by the author.
DeleteIF A IS GREATER THAN SYMBOL B AND A IS GREATER THAN SYMBOL C THEN
DeletePRINT A
ELSEIF B IS GREATER THAN SYMBOL A AND B IS GREATER THAN SYMBOL C THEN
PRINT B
ELSE
PRINT C
END IF
END
CLS
DeleteINPUT "ENTER FIRST NUMBER"; A
INPUT "ENTER SECOND NUMBER"; B
INPUT "ENTER THIRD NUMBER"; C
IF A > B AND A > C THEN
PRINT A "IS GREATEST"
ELSE IF B > A AND B> C THEN
PRINT B "IS GREATEST"
ELSE PRINT C "IS GREATEST"
END IF
END IF
END
Can u help me with series 2,9,28,126.....10terms.
ReplyDeleteWAP that asks length of 3 sides of a triangle and check whether right angle triangle or not
ReplyDeleteThis comment has been removed by the author.
DeleteCLS
DeleteINPUT "enter first length"; a
INPUT "enter second length"; b
INPUT "enter third length"; c
IF a + b > c THEN
IF b + c > a THEN
IF a + c > b THEN
END IF
END IF
PRINT " these sides form triangle"
ELSE PRINT "these sides do not form triangle"
END IF
END
I am a new teacher, and i have to teach QBASIC in class 8, thanks for this, i learned C programs in past, but now i can teach them very perfectly i think, =)
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteDear all: if any one could help me print any input numbers in the pattern x-y+z-w+... up to 10 terms in qbasic. finding sum is not required. only pattern printing is required.
ReplyDeletethanks.
Dear all: if any one could help me print any input numbers in the pattern a+b-c+d+e-f ... up to 10 terms in qbasic and find its sum.
ReplyDeletethanks.
CLS
DeleteINPUT"ENTER NUMBERS";a,B,C,D,E,F
S=A+b+c+d+e+f
PRINT S;"IS THE SUM"
END
This comment has been removed by the author.
ReplyDeleteI'm very happy for this thanks a lot
ReplyDeleteTHESE ARE EASY.IF YOU NEED HELP I CAN HELP YOU . I AM GENIUS IN QBASIC.EVERY QUESTION ARE LIKE AN ANT TO ME. NEED HELP CAN ASK ME.I WILL GIVE ANSWERS TO EVERY QUESTION VISITORS PASTE....THANK YOU
ReplyDelete