Please help me in Small Basic.
1)Accept ten different numbers.Display the sum and the product of the numbers.
Please write the programming.
Please help...
Share
Please help me in Small Basic.
1)Accept ten different numbers.Display the sum and the product of the numbers.
Please write the programming.
Please help...
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
Program of Qbasic to find the sum and product of ten numbers.
Explanation:
PROGRAM TO DISPLAY SUM, PRODUCT, AND AVERAGE OF TEN NUMBERS.
CLS
INPUT “ENTER NUMBER”; A
INPUT “ENTER NUMBER”; B
INPUT “ENTER NUMBER”; C
INPUT “ENTER NUMBER”; D
INPUT “ENTER NUMBER”; E
INPUT “ENTER NUMBER”; F
INPUT “ENTER NUMBER”; G
INPUT “ENTER NUMBER”; H
INPUT “ENTER NUMBER”; I
INPUT “ENTER LAST NUMBER”; J
S = A + B + C + D+ E+ F+ G + H + I + J
P = A * B * C * D * E * F * G * H * I * J
PRINT “SUM OF TEN NUMBERS”; S
PRINT “PRODUCT OF TEN NUMBERS”; P
END
Yo sup??
I hope u remember me......
the hint is my username...
comig to the question...it's in python
lst=[]
sum=0
ped=1
for i in range (0,10):
a=input('enter the number:')
lst.append()
for i in lst:
sum=sum+int(i)
ped=ped*int(i)
print(sum,ped)
Hope u will find me
;)