answersLogoWhite

0


Best Answer

Cls

input "enter two no.s ",a,b

sum=a+b

print "sum = ";sum

end

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
User Avatar

Kalpana Kalpana

Lvl 1
8mo ago
.
More answers
User Avatar

Wiki User

15y ago

write a simple but a complete Qbasic that will accept three numbers find sum and the average of these numbers. write a simple but a complete Qbasic that will accept three numbers find sum and the average of these numbers. write a simple but a complete Qbasic that will accept three numbers find sum and the average of these numbers.

CODE CREATED: 26th January 2009 - 22:59 PM GMT

CLS '(CL)ear the (S)creen

PRINT "Maths PROGRAM: Calculates both sum total/and, average of 3 numbers"

PRINT

PRINT "You will berequired to enter 3 numbers, seperately; one at a time;"

PRINT "then, the progam willfind the 3numberssum total/and, also, average."

PRINT

INPUT "Enter number 1"; number1%

INPUT "Enter number 2"; number2%

INPUT "Enter number 3"; number3%

total% = number1% + number2% + number3%

average% =total%/3

PRINT "The total of your 3 numbers is: "; total%

PRINT "The average of your three numbers is: ";average%

END '...END of program/halt program code execution

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write the program in qbasic and add two numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a program to add two 8 bit numbers in microprocessor 8051?

write it in 8085


Write a program in 8051 to add 2 16- bit numbers?

Mov a.#000ff, mov b,#0008f add a,b


How do you write a program in java to read ten numbers and print sum of ten integers?

Add the numbers into one variable as you read them in. But if you prefer, you can read the numbers into an array and then use a loop to add the numbers together.


Can we add website link when we write java program?

yes ,i can add the website link in java program when we write.


How add 2x2 matrix in qbasic?

8


How do you add odd numbers only in qbasic from 1 to 10?

CLS FOR eachNum%=1 TO 10 STEP 2 PRINT eachNum% NEXT


write simple program to solve the following problems : add the following numbers = 10,222,99,999,74,532?

A+(B+C**3) (A-(+D+B/A+B)


1 To develop a program using the ADI instruction to add the two hexadecimal numbers 3AH and 48H and store the result in memory location 2100H?

Write a program using the ADI instruction to add the two hexadecimal numbers 3AH and 48H and store the result in memory location 2100H


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 do you run c programm with add two numbers?

1. Write the program 2. Compile and link it 3. Execute it by entering its name at command prompt


How do you add 2 numbers in QBASIC?

I'm not too sure that I understand exactly what you mean by 'add a square'...?! Thus, I will attempt to answer the question using multiple different ways; hoping that, least, 'one' of these answers might be right... ==> CLS PRINT "PROGRAM: Twelve Times Tables Number Square" PRINT FOR intTimes% = 1 TO 12 FOR intTables% = 1 TO 12 sum% = intTimes% * intTables% noOfSpaces% = 0 IF LEN(STR$(sum%)) = 2 THEN noOfSpaces% = 2 IF LEN(STR$(sum%)) = 3 THEN noOfSpaces% = 1 PRINT sum%; SPC(noOfSpaces%); NEXT PRINT NEXT END <== ...QBASIC Code/End.


Write a program in c plus plus language to add 2 numbers?

int main() { int num1; int num2; int result = num1 + num2; return 0; }