Valerie Meunier

Valerie Meunier

  • NA
  • 693
  • 82.7k

how to return string and no string together?

Feb 6 2022 10:00 AM

Hi

How can i return this? Thanks

 static string MyMethod(int x)
    { return "{0} x {1} = {2}=", x, 2, x * 2; }

    static void Main(string[] args)
    {    Console.WriteLine(MyMethod(7));   }


Answers (3)