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
;)
Copyright © 2024 EHUB.TIPS team's - All rights reserved.
Answers & Comments
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
;)