Need help

Updated on March 20, 2017 in [A] Other Answers
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
2 on March 19, 2017

So I got Create a program named FlexibleArrayMethod that declares at least three integer arraysof different sizes. In turn, pass each array to a method that displays all the integers ineach array and their sum.

here is what I got

using static System.Console;

class FlexArrayMethods
{

public static void Main()

{
PrintArraysMethod(int[] nums1, int[] nums2, int[] nums3)
double nums1 +nums2 + nums3;

WriteLine(“total is “, nums1[x], nums2[x], nums3[x]);
ReadKey();

}

private static void PrintArraysMethod(int[] nums1, int[] nums2, int[] nums3)
{

int[] nums1 = { 2, 7, 6 };
int[] nums2 = { 8, 20, 456 };
int[] nums3 = { 21, 14, 34 };

}

}

  • Liked by
Reply
1 on March 20, 2017

So what exactly is the problem?

on March 20, 2017

I cant get it to run and compile

Show more replies
  • Liked by
Reply
Cancel