Computer Science, asked by DetectiveSammy, 1 month ago

Write a program in QBASIC to print the first five even natural numbers using FOR-NEXT-LOOP ​

Answers

Answered by hiraldubey5
10

Explanation:

PROGRAMS:

Write a program to print your name 10 times using For…Next loop.

Write a program to print first 10 natural numbers using For…Next loop.

Write a program to print the first 10 natural numbers in reverse order using For…Next loop.

Write a program to print numbers 10 to 15 using For… Next loop.

Write a program to print the series: 0, 2, 4, 6, 8, 10, 12 using For… Next loop.

Write a program to print the series: 0, 1.5, 3, 4.5, 6 using For… Next loop.

Write a program to print all the odd numbers between 1 to 10 using For…Next loop.

Write a program to print all the even numbers between 1 to 10 using For…Next loop.

WAP using For…Next loop to print in descending order, the series of odd numbers between 10 and 110.

WAP using For…Next loop to print the sum of any 10 numbers.

Write a program using For…Next loop to find the sum of the series: 1+2+3+4+5.

Write a program using For…Next loop to find the average age of 10 students.

WAP to input name and marks of a student in 5 subjects and print the total marks, percentage and average marks.

WAP using For…Next loop , to input names and marks in four subjects of 25 students, and calculate the total marks, percentage and average of each student. Print the name, marks, total marks, average and percentage of each student.

Write a program using For…Next loop to find the sum of the series of even numbers between 215 and 315.

Write a program using For…Next loop to find the sum of the series: 5, 10, 15, ……………. , 50.

Write a program using For…Next loop to print the table of 5.

WAP using For…Next loop to print the sum of the following series: x+ x2+x3+x4……..x10.

WAP using For…Next loop to find the sum of the following series: X2/2 + x4/4 + x6/6 + .. + x20/20 .

WAP using For…Next loop to find the sum of the following series: X+ X3/3 + x5/5 + x7/7

Write a program using For…Next loop to find the sum of the following series: 4/y+4 +7/y+7 + … + 16/y+16.

Write a program using For…Next loop to find the sum of the following series: P2/p+2 +p4/p+4 + … + p12/p+12

WAP using for..next loop to input the value of x and generate the following series: x, x2, x3, …, x20

WAP using For…Next loop to print the following series in descending order: 3, 7, 11, 15, 19, 23, 27.

Write a program to print first 10 multiple of any number input using For… Next loop.

Answered by kimrose011
11

Answer:

hi \: sharlene

Explanation:

CLS

INPUT “Enter any number”; n

FOR i = 1 TO 10

a = n * i

PRINT n; “x”; i; “=”; a

NEXT i

END

Here if user wants to find the table of 5 then it’s output will be

5 x 1=5

5 x 2=10

5 x 3=15

5 x 4=20

5 x 5=25

5 x 6=30

5 x 7=35

5 x 8=40

5 x 9=45

5 x 10=50

hope it helps uh :)

Similar questions