A X

A X

  • NA
  • 18
  • 8.9k

how do i show 2 numbers in an array?

Sep 4 2013 7:21 PM
im trying to show a final result of 2 numbers entered by a user.
example:
{
console.write("first : ")
a[0] = int32.parse(console.readline());
console.write("second: ");
a[1] = int32.parse(console.readline());
}

    med (a);//the method i created to calculate

console.writeline("heres you go : " + med(a[0], a[1]); // im having trouble here
                                                                               // i thought you had to include
                                                                        // both inputted nuimbers?

} static void med(int x, int d, int []a)
{
result = (c*d)/1.5;
}

Answers (4)