0

Output c#

When I do this code in C# installed: using System; namespace ConsoleApplication1 { public class Program { public static void Main(string[] args) { int a = 5; int s = 0, c = 0; Mul (a, ref s, ref c); Console.WriteLine(s + "t " +c); Console.ReadLine(); } static void Mul (int x, ref int ss, ref int cc) { ss = x * x; cc = x * x * x; } } } ** The output = 25t 125 But I find this Website that answer it = 25 125 https://www.sanfoundry.com/csharp-mcqs-methods-class/ Which output is correct ( 25t 125 ) or ( 25 125 ) ??? With letter t or without it

6th Aug 2020, 5:42 AM
Ruqiya
2 Answers
6th Aug 2020, 7:07 AM
Mahdi Salimkhani
Mahdi Salimkhani - avatar
+ 2
25t 125
6th Aug 2020, 6:53 AM
Mahdi Salimkhani
Mahdi Salimkhani - avatar