John

John

  • NA
  • 43
  • 34.1k

Muiltiplaying with lists

Jan 12 2012 1:46 AM
Hi Guys,

I was wondering if it was possible to multiply lists against list and lists against doubles.

My program contains a list of randomly generated numbers(doubles), and several double values for instance "double n = 12". which are collected from user input

What im trying to do is not only muliply that n'th value with the list but with a selected value from the list.

my random gen list code is as below

double weightNo = numberHn * numberInput;

  if (weightNo < 1) return;
  for(double i = 1; i <= weightNo; i++) inweight.Add( - 0.5 +weight.NextDouble());

  listBox4.DataSource = (inweight);


just wondering if its possible, even to multiply the value against each value in the list would be great.

Hope someone can help!

Cheers!

Answers (3)