answersLogoWhite

0

You use the relevant formula.

User Avatar

Connie Ferry

Lvl 10
5y ago

What else can I help you with?

Continue Learning about Basic Math

How do you add numbers in qbasic?

-- Think of a name for the sum, like 'S'.-- Tell qbasic what 'S' is the sum of.S = 41 + 61 + 2 + 84 + 136-- If you want to see it on the screen, thenPRINT Sand the sum pops up. It looks like this on the screen:324


How to do average programs in qbasic?

To calculate the average of a set of numbers in QBasic, you first need to declare variables to store the sum and count of the numbers. You can use a loop to input the numbers, adding each one to the sum and incrementing the count. After the loop, divide the total sum by the count to get the average. Here’s a simple example: DIM sum AS SINGLE DIM count AS INTEGER sum = 0 count = 0 DO INPUT "Enter a number (or -1 to finish): ", num IF num <> -1 THEN sum = sum + num count = count + 1 END IF LOOP UNTIL num = -1 IF count > 0 THEN PRINT "Average: "; sum / count ELSE PRINT "No numbers entered." END IF


How do you arrange numbers in ascending order in qbasic programming?

To arrange numbers in ascending order in QBASIC, you can use a simple sorting algorithm like bubble sort. First, store the numbers in an array. Then, repeatedly compare adjacent elements and swap them if they are in the wrong order until the entire array is sorted. Here's a basic example: DIM numbers(5) AS INTEGER ' (Assume numbers are already populated) FOR i = 0 TO 4 FOR j = 0 TO 4 - i - 1 IF numbers(j) > numbers(j + 1) THEN SWAP numbers(j), numbers(j + 1) END IF NEXT j NEXT i This will sort the array numbers in ascending order.


How do you find the sum of five numbers if the average of the five numbers is 790.6?

The average of a group of numbers is equal to the sum of the numbers divided by the number of numbers. If you want to find the sum of the five numbers, just multiply 790.6 by 5 to get the sum, which is 3953


What numbers as a sum of two prime numbers 95?

You can't write that as the sum of two prime numbers. Note: Goldbach's Conjecture (for expressing numbers as the sum of two prime numbers) applies to EVEN numbers.

Related Questions

How do you add numbers in qbasic?

-- Think of a name for the sum, like 'S'.-- Tell qbasic what 'S' is the sum of.S = 41 + 61 + 2 + 84 + 136-- If you want to see it on the screen, thenPRINT Sand the sum pops up. It looks like this on the screen:324


Do you need statement numbers in QBASIC?

Statement numbers were a feature of BASIC, and while QBASIC supports them, they are by no means necessary.


How to do average programs in qbasic?

To calculate the average of a set of numbers in QBasic, you first need to declare variables to store the sum and count of the numbers. You can use a loop to input the numbers, adding each one to the sum and incrementing the count. After the loop, divide the total sum by the count to get the average. Here’s a simple example: DIM sum AS SINGLE DIM count AS INTEGER sum = 0 count = 0 DO INPUT "Enter a number (or -1 to finish): ", num IF num <> -1 THEN sum = sum + num count = count + 1 END IF LOOP UNTIL num = -1 IF count > 0 THEN PRINT "Average: "; sum / count ELSE PRINT "No numbers entered." END IF


Write the program in qbasic and add two numbers?

Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end


To print even nobetween 10 and 100 on qbasic command?

You need a code that can run to print even numbers between 10 and 100 using the qbasic command.


How do you find the product of five numbers in Qbasic?

Most computer languages use the asterisk, "*", for multiplication.


What does it mean answer to a sum?

To add the numbers together is the sum!!!! to add the numbers together is the sum!!!!


What is a sum in numbers?

Sum means to add numbers together.


How do you write a Qbasic program to display these Numbers-0112358132134?

you do this 10 print "0112358132134" use the whole of the thing


What are the sum of two numbers if the sum of two consecutive even numbers is 26?

The sum of the numbers is 26. The numbers are 12 and 14.


What extension would a file saved in Qbasic have?

the extensions of qbasic are that, there are only 80 pixels to write in the qbasic


How do you find the sum of five numbers if the average of the five numbers is 790.6?

The average of a group of numbers is equal to the sum of the numbers divided by the number of numbers. If you want to find the sum of the five numbers, just multiply 790.6 by 5 to get the sum, which is 3953