anu3970 anu3970
  • 23-10-2021
  • Computers and Technology
contestada

Write a program in BASIC- 256 to accept two numbers from the user and print their sum and product​

Respuesta :

foreverronneshia foreverronneshia
  • 23-10-2021
10 Dim V(5)

19 rem compute the numbers

20 v(1)=rnd

30 v(2)=rnd

40 v(3)=rnd

50 v(4)=rnd

60 v(5)=rnd

69 rem compute the average

70 a=(v(1)+v(2)+v(3)+v(4)+v(5))/5

79 rem print the numbers and their average
80 print v,a

Answer Link

Otras preguntas

Of these four words, which one is most likely to have a negative flavor or connotation? a. Confuse b. Distract c. Harangue d. Meander
If most objects are made up of free space then why can we put our hands through a book or wall?
Is it possible to tell if an acid or base is strong or weak just by looking at its chemical formula?
Analyze the following statements. Which of them is correct with respect to the RNA transcript formed by means of transcription? a. The RNA transcript is an exac
MACBETH, aside. The Prince of Cumberland! that is a step On which I must fall down, or else o'erleap, For in my way it lies. Stars, hide your fires; Let not lig
Which does not describe a cause of the Reformation? a. Church leaders' concern with money and power instead of the needs of the people b. the refusal of the Chu
Which type of soil holds the most water? A.silt b. clay c. sand d. loam
Which words in the sentence are adverbs? Usually the noise becomes extremely loud. Choose all answer that are correct.
(94 -81 z)^3, when z = 25
Why were other European countries slower to industrialize than Britain?