Link to home
Start Free TrialLog in
Avatar of MrTV
MrTVFlag for Thailand

asked on

c# variable

why we need to put  aValue, bValue,
in the   line   + " and {1} is {2}", aValue, bValue,  


int aValue = 200 ;
int bValue = 896;
int result;
result = Math.Max(aValue,bValue);
result += BValue * Math.max(aValue, bValue) -  aValue;
Console.WriteLune("Largest value between {0} " 
   + " and {1} is {2}", aValue, bValue,
   Math.Max(aValue, bValue));

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial