Ask your own question, for FREE!
Computer Science 18 Online
OpenStudy (anonymous):

How do I multiply items in a list?

OpenStudy (anonymous):

In what language?

OpenStudy (anonymous):

in vb?

OpenStudy (anonymous):

Dim list As New List(Of Integer) list.Add(2) list.Add(3) list.Add(7) Dim iter As Integer Dim product As Integer For Each iter In list product = product * iter

OpenStudy (anonymous):

Dim list As New List(Of Integer) list.Add(2) list.Add(3) list.Add(7) Dim iter As Integer Dim product As Integer product=1 For Each iter In list product = product * iter

OpenStudy (anonymous):

def product(a,b): return a*b filter(product,theList) That's Python 3.

OpenStudy (anonymous):

it's a I have to guess what you're looking for question unfortunatly...

OpenStudy (anonymous):

or Java: int product = 0; for (int i : list) { product = product * i; }

OpenStudy (anonymous):

i'm writing in C language struct node * { int data; struct node *next; }*first; typedef struct node sn; main() { sn *new; new=(sn *)malloc(sizeof(sn)); printf("\nEnetr data"); scanf("%d",&new->next); if(first==NULL) first=new; else { for(t=first;t->next!=NULL;t=t->next) t->next=new; } printf("\nRequired product"); for(i=first;t!=NULL;t=t->next) i=i*t->data; printf("%d\t",i); } Hope the code is corrct

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!