April 10, 2017

Qbasic program to print 1, 121, 12321, 1234321, 123454321

CLS
N# = 1
FOR I = 1 TO 5
PRINT N# * N#
N# = (N# * 10) + 1
NEXT I
END

2 comments:

  1. 2. Write a program to generate the following series: 123454321, 1234321, 12321, 121, 1.
    3. Write a program to generate the following series: 55555, 4444, 333, 22, 1.
    4. Write a program to generate the following series: 1,2,4,7,11,16,22,……… upto 10 terms.
    5. Write a program to get the sum to 20 to 50 numbers.
    6. Write a program to generate the following series: 4,40,400,… till 6th terms.
    7. Write a program to display the prime numbers between 20 to 100.
    8. Write a program to calculate the area and circumference of a circle.
    9. Write a program to find the greatest number among 3 inputs.
    10. Write a program to input 3 angles of a triangle and determine whether the triangle is right
    angled triangle.
    11. Write a program to print the following pattern: G, OGR, ROGRA, PROGRAM.
    12. Write a program to check if the input number is palindrome or not.
    plz help me

    ReplyDelete

Note: Only a member of this blog may post a comment.