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

User Sig
by
5.2k points

1 Answer

3 votes
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

User Andy Madge
by
5.8k points