Search This Blog

Saturday, August 14, 2010

Q-BASIC PROGRAMS






1)Write a program to enter your name and print it .


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.

540 comments:

  1. Do you think you could help me write some Qbasic statements? I have a final due tomorrow and i am so lost!

    ReplyDelete
  2. thank u soo much this is so useful for my test but i needed two more

    ReplyDelete
  3. THANK YOU SOOOO MUCH!!
    I 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!! =)

    ReplyDelete
  4. need some more. please include code and its descriptions also

    ReplyDelete
  5. how bout statements for calculating average?

    ReplyDelete
  6. thank you i have learned program which is more useful to me add more program to develop the skill on qbasic

    ReplyDelete
  7. 5
    55
    555
    5555
    55555
    555555
    5555555
    55555555

    And

    NEPAL
    NEPA
    NEP
    NE
    N
    Will you help me to solve this two program please

    ReplyDelete
    Replies
    1. CLS
      A=5
      For I =1 to5
      Print A;
      A=A*10+4
      Next I
      End

      Delete
    2. Input "enter ur score for math", a
      input"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

      Delete
    3. 5
      55
      555
      5555
      55555
      555555
      5555555
      55555555

      FOR I = 1 TO 8
      FOR J = 1 TO I
      PRINT "5";
      NEXT J
      NEXT I

      Delete
    4. This helped me a lityle but I will suggest to take iswas from this and understand the test from book.THANK YOU=:-).

      Delete
  8. CLS
    A$="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

    ReplyDelete
  9. CLS
    A$="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

    ReplyDelete
  10. This comment has been removed by the author.

    ReplyDelete
  11. Please help me to make a calculator that can convert celsius to fahrenheit and vice versa....

    ReplyDelete
    Replies
    1. REM *** By Giorgio, Italy ***
      CLS
      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

      Delete
    2. Make a program to enter the marks of five subject and their total and average

      Delete
    3. Make a program to enter the marks of five subject and their total and average

      Delete
    4. CLS
      INPUT "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

      Delete
    5. CLS
      '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

      Delete
  12. please somebody should help me to write an algorithm to compute n! (N-Factorial)...

    ReplyDelete
    Replies
    1. REM *** By Giorgio, Italy ***
      CLS
      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

      Delete
  13. Please can you help me with this one
    *
    ***
    *****
    *******
    *********
    *******
    *****
    ***
    *

    ReplyDelete
  14. Please can you help me with this one
    *
    ***
    *****
    *******
    *********
    *******
    *****
    ***
    *

    ReplyDelete
    Replies
    1. cls
      m$="*******"
      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

      Delete
  15. can u give discription of syntax"sel" and some programs of "mid$(1,l) etc.
    thank u by the way this is very helpful

    ReplyDelete
  16. Please help me . Complete this statement
    ____x=5_____print x

    ReplyDelete
  17. Please help me
    1 2 3 5 8... Upto 10th term

    ReplyDelete
  18. He ADmin MAke your Blogspot. Really Attractive By Your Template Like I Have
    https://koolproduction.blogspot.com

    ReplyDelete
  19. In question number 28th the line: If N>0 Then is not properly.
    Iam doing the same thing but my computer shows the error. why is it so.

    ReplyDelete
  20. 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.
    please help me to solve this program using while wend loop.

    ReplyDelete
  21. Very useful... but also add programms for calculation such as prime nos. Odd nos squares etc

    ReplyDelete
  22. This comment has been removed by the author.

    ReplyDelete
  23. THERE'S A PROBLEM IN PROGRAM NO. 32 AS THERE ARE 2TIMES THIS A VOWEL

    ReplyDelete
  24. WRITE A PROGRAM TO ADD 2 ARRAYS AND STORE IN THE THIRD ARRAY.

    ReplyDelete
  25. i need one more right now to find ticket fair required to be paid according to the age of passenger please

    ReplyDelete
  26. write a qbasic program that find the avrage age of 10 students using do loop

    ReplyDelete
  27. 54321
    4321
    321
    21
    1

    and

    12345
    2345
    345
    45
    5

    and

    5
    54
    543
    5432
    54321

    pls help me with writing programs for these output

    ReplyDelete
  28. This comment has been removed by the author.

    ReplyDelete
  29. Thanks for the questions and solutions. I want to use it for my students in pascal and fortran and this is simply helpful. thanks

    ReplyDelete
  30. It has some problem that it does not show the output

    ReplyDelete
  31. Can you please tell me how to generate the series of 11,22,33,44...up to 10 terms...???

    ReplyDelete
  32. My question is
    Write a program to find the SUM and PERCENTAGE of any 4 NOS using the INPUT STATEMENT

    ReplyDelete
  33. 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.

    ReplyDelete
  34. please someone should help me in writing a program on how to generate factorial numbers using qbasic.......thanks

    ReplyDelete
  35. this help me to write well in exams

    ReplyDelete
  36. COOL... thanks to You for designing this website, now I know where my mistake is from...

    ReplyDelete
  37. COOL... thanks to You for designing this website, now I know where my mistake is from...

    ReplyDelete
  38. Hey guys ca you solve this qbasic problem:
    Display the given series

    000
    111
    0
    1
    000
    111

    Solve it thank you

    ReplyDelete
  39. WAP to input 2 num and find the greatest among them. How to do this ?

    ReplyDelete
    Replies
    1. Rem +++++++++++++++++++++++++++++++
      Rem 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

      Delete
  40. 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.

    TO FIND THE VOLUME OF A CYLINDER?

    ReplyDelete
  41. 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

    ReplyDelete
  42. Can any one help me in below mentioned programs

    1. 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

    ReplyDelete
  43. need some more programs please relating string functions quick my exams are on my head

    ReplyDelete
  44. I don`t like it!
    I love it!
    Very useful site !

    ReplyDelete
  45. Can any one help me ...
    1 square + 2 square + 3 square...upto N square

    ReplyDelete
  46. wap to display first 10 natural numbers using if then go to.

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
  47. Write 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.

    ReplyDelete
  48. Please reply as soon as possible thanks

    ReplyDelete
  49. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
  50. can u give me 2 QBASIC statement about ELSE IF????

    ReplyDelete
  51. Can I get 5 else if statement and 10 select case statement

    ReplyDelete
  52. ,5 qbasic else if statement and 10 select case statement

    ReplyDelete
  53. please help me to solve 1,4,9,16,25 using For next loop

    ReplyDelete
  54. 1,4,9,1625
    cls
    for i= 1 to 5
    print i^2
    next
    end

    ReplyDelete
  55. wap that asls any string value and dispaly its reverse

    ReplyDelete
  56. can u help me solve thhis series
    1
    22
    333

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. CLS
      FOR I = 1 TO 3
      FOR J = I TO 1 STEP -1
      PRINT I;
      NEXT J
      PRINT
      NEXT I
      END

      Delete
  57. 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

    ReplyDelete
  58. write a program to check entered number is positive ,negative or neutral in qbasic

    ReplyDelete
  59. CLS
    a = 1
    FOR i = 1 TO 5
    FOR j = 1 TO i
    PRINT a;
    a = a + 1
    NEXT j
    PRINT
    NEXT i
    END

    ReplyDelete
  60. help me!!!!with this one
    1
    12
    123
    1234
    12345
    123456
    1234567
    12345678
    123456789

    ReplyDelete
  61. help me!!!!with this one
    1
    12
    123
    1234
    12345
    123456
    1234567
    12345678
    123456789

    ReplyDelete
    Replies
    1. CLS
      FOR i = 1 TO 9
      FOR j = 1 TO i
      PRINT j;
      NEXT j
      PRINT
      NEXT i
      END

      Delete
    2. CLS
      FOR i = 1 TO 9
      FOR j = 1 TO i
      PRINT j;
      NEXT j
      PRINT
      NEXT i
      END

      Delete
  62. Check if higher than 100 help me

    ReplyDelete
  63. cls
    input "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

    ReplyDelete
  64. cls
    input "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

    ReplyDelete
  65. write a program to ask the user to enter 2 natural nos. and then display the square of the difference.

    pls solve this program for me now as i have teast tomorrow morning

    ReplyDelete
  66. write a program to ask the user to enter 2 natural nos. and then display the square of the difference.

    pls solve this program for me now as i have teast tomorrow morning

    ReplyDelete
  67. plz send me a program for tax variables-basic price tax if tax is 5/

    ReplyDelete
  68. plz send me a program for tax variables-basic price tax if tax is 5/

    ReplyDelete
  69. Display the following series 2,4,6,8..... up to 10th term. Could you plz tell me this answer I'm having a problem

    ReplyDelete
  70. This comment has been removed by the author.

    ReplyDelete
  71. can someone help me with this one!!!!!
    11235813................100

    ReplyDelete
  72. thanks it has helped me a lot for tomorrow's examine.

    ReplyDelete
  73. Thank you..but it would be also very useful if you write any qb64 mod programme.

    ReplyDelete
  74. Write a program on moving text pls

    ReplyDelete
  75. Write a program on moving text pls

    ReplyDelete
  76. print 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

    ReplyDelete
  77. Please can someone help me with this program:

    Display all the letters from A-Z using the FOR.....NEXT loop statement.

    ReplyDelete
  78. @ Vivian Herbert For printing Prime numbers in range of 1 to 50 this is the program:

    CLS
    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

    ReplyDelete
  79. @ Vivian Herbert For printing Prime numbers in range of 1 to 50 this is the program:

    CLS
    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

    ReplyDelete
  80. W.A.P to assign the element in two arrays having 3 rows n 3 columns .The 3rd shoukd contain the sum of 2 array

    ReplyDelete
  81. Please help me to make a calculator that can find hypotenus of a right angle triangle

    ReplyDelete
  82. Please tell me how to print multiplication table of 5 to 50 in a single program using wild when loop

    ReplyDelete
  83. Please tell me how to print multiplication table of 5 to 50 in a single program using wild when loop

    ReplyDelete
  84. I love these programs for QBASIC!!!!!!

    ReplyDelete
  85. Can 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.

    ReplyDelete
  86. I want to print a program of first ten multiples of 6,7,8.

    ReplyDelete
  87. This comment has been removed by the author.

    ReplyDelete
  88. Write a program to generate the following series
    *****
    ****
    ***
    **
    *

    ReplyDelete
  89. wap to print the sum of series: 1+4+9+16+...100

    ReplyDelete
  90. What is the solution to display the flag of Nepal?

    *
    **
    ***
    ****
    *****
    ******
    *******
    *
    **
    ***
    ****
    *****
    ******
    *******
    **
    **
    **
    **

    ReplyDelete
  91. Pls tell me how to make program to print the report cards of 30 students using q basic

    ReplyDelete
  92. A 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

    ReplyDelete
  93. SQR (-16)
    Can you give me this ones output?

    ReplyDelete
  94. display 4,5,9,14,23 upto 10th term

    ReplyDelete
  95. im having a problem with this program

    ReplyDelete
  96. Help me with this. Write QBASIC program to generate 30 random integer numbers distributed between 20 an 50.

    ReplyDelete
  97. can u help me with this. write a qbasic program to input ten numbers and print only the odd numbers.

    ReplyDelete
  98. Please tell me how to write the sum of table of 3 till ten. 3+6+9.........+30

    ReplyDelete
  99. Please tell me how to write the sum of table of three. 3+6+9+12+........+30

    ReplyDelete
  100. Plz help me by solving this
    1
    2 6
    3 7 10
    4 8 11 13
    5 9 12 14 15

    ReplyDelete
  101. please help me solving this
    2
    24
    246
    2468
    246810

    ReplyDelete
  102. CLS
    A=5
    For I =1 to 8
    Print A
    A=A*10+5
    Next I
    End

    ReplyDelete
  103. please tell me how to get the multiples of a number which is inputted by the user

    ReplyDelete
  104. How to find the sum and average of five number

    ReplyDelete
    Replies
    1. REM TO FIND THE SUM AND AVERAGE OF FIVE NUMBER
      CLS
      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


      Delete
  105. Please tell me how to write a program to calculate the sum of positive and negative numbers if user has to enter 10 numbers

    ReplyDelete
  106. Please i need help with this...

    Write 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

    ReplyDelete
  107. Please answer me;
    Input a complete date of birth of a person and compute his or her current age in sub end sub procedure.

    ReplyDelete
  108. Can you answer me the question:6,11,21,36,56....10 terms

    ReplyDelete
  109. Help me find the answer of to print first ten multiples of 6,7,and 8 in a creative way

    ReplyDelete
  110. please help me to write a program to display
    2 5 10 17 26 up to 12th term

    ReplyDelete
  111. To print the following numeric series
    3,33,333,3333,33333

    ReplyDelete
  112. These are very helpful please answer my question dai

    ReplyDelete
  113. This comment has been removed by the author.

    ReplyDelete
  114. My question is how to write a program for integers

    ReplyDelete
  115. This comment has been removed by the author.

    ReplyDelete
  116. wap to display the first 10 terms of the series 3,6,12,24 using for-next and while-wend loop in qbasic.

    ReplyDelete
  117. plz help me
    print the qbasic program of series
    1
    2 6
    3 7 10
    4 8 11 13
    5 9 12 14 15

    ReplyDelete
    Replies
    1. PLZ FAST REPLY ME BRO U WILL BE THANK FUL I NEED FAST

      Delete
  118. WRITE 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

    ReplyDelete
  119. admin please,
    a 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

    ReplyDelete
  120. Write a program to read names of 5 students and print them in reverse order.(using READ DATA statement) plz.

    ReplyDelete
  121. its very much helpful for the schooling students

    ReplyDelete
  122. how to wap to find if a year is leap year or not

    ReplyDelete
    Replies
    1. Your Programm
      DIM 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

      Delete
    2. Help me to generate this series 11 22 33 44 up to 10 terms

      Delete
    3. This comment has been removed by the author.

      Delete
    4. CLS
      FOR I=1 TO 10
      A=I*10+I
      PRINT A;
      NEXT I
      END

      Delete
  123. to print number 1,3,6,10,15,21,28,36,45,55

    ReplyDelete
  124. to print number 1,3,6,10,15,21,28,36,45,55

    ReplyDelete
  125. to print number 1,3,6,10,15,21,28,36,45,55

    ReplyDelete
    Replies
    1. CLS
      A=1
      FOR I =2 TO 11
      PRINT A;
      A=A+I
      NEXT I
      END

      Delete
  126. to print number 1,3,6,10,15,21,28,36,45,55

    ReplyDelete
  127. Write 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

    ReplyDelete
  128. Write a program to display time in hours and convert time into minutes as well as seconds.

    ReplyDelete
    Replies
    1. Hello Dear Please Follow this link get your answer
      http://bloghindisupport.blogspot.com/2017/05/convert-time-program-in-qbasic.html

      Delete
  129. 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.

    ReplyDelete
  130. KATHMANDU
    ATHMAND
    THMAN
    HMA
    M


    plz solve it..ANYONE THANK U

    ReplyDelete
  131. write a program to input any number and print only composite number

    ReplyDelete
    Replies
    1. CLS
      INPUT"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

      Delete
  132. Thank you. I learnt a lot from this page.
    Q 28. If we input 0, then it says 'the number is negative'. But 0 is not negative!

    ReplyDelete
  133. how do we make this one
    *
    **
    ***
    ****
    *****

    ReplyDelete
    Replies
    1. CLS
      S$ = "*****"
      M = LEN(S$)
      FOR I = 1 TO M
      SUB$ = LEFT$(S$,I)
      PRINT SUB$
      NEXT I
      END

      Delete
  134. How do you generate 0.3,0.33,0.333,0.3333 .... Upto 9th term

    ReplyDelete
    Replies
    1. CLS
      A = 0.3
      N = 1
      TOP:
      PRINT A
      A = A/10
      N = N + 1
      IF N less than symbol= 9 THEN GOTO TOP
      End

      Delete
  135. write a program to input a number and display table upto
    10th terms.

    ReplyDelete
    Replies
    1. CLS
      INPUT "ENTER ANY NUMBER"; X
      FOR Y = 1 TO 10
      TABLE = X * Y
      PRINT X; "*"; Y; "="; TABLE
      NEXT Y
      END

      Delete
  136. write a program to enter any three different numbers and display the greatest number

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. IF A IS GREATER THAN SYMBOL B AND A IS GREATER THAN SYMBOL C THEN
      PRINT A
      ELSEIF B IS GREATER THAN SYMBOL A AND B IS GREATER THAN SYMBOL C THEN
      PRINT B
      ELSE
      PRINT C
      END IF
      END

      Delete
    3. CLS
      INPUT "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

      Delete
  137. Can u help me with series 2,9,28,126.....10terms.

    ReplyDelete
  138. WAP that asks length of 3 sides of a triangle and check whether right angle triangle or not

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. CLS
      INPUT "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

      Delete
  139. 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, =)

    ReplyDelete
  140. This comment has been removed by the author.

    ReplyDelete
  141. Dear 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.
    thanks.

    ReplyDelete
  142. 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.
    thanks.

    ReplyDelete
    Replies
    1. CLS
      INPUT"ENTER NUMBERS";a,B,C,D,E,F
      S=A+b+c+d+e+f
      PRINT S;"IS THE SUM"
      END

      Delete
  143. This comment has been removed by the author.

    ReplyDelete
  144. THESE 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