What does the console.writeline means un a function and nethod.
How does the return key word works in a function.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Abhay ShankerPosted Aug 21, 2015, 10:02 PM
class ReturnTest{{double area = r * r * Math.PI;return area;{int radius = 5;double result = CalculateArea(radius);Console.WriteLine("The area is {0:0.00}", result);// Keep the console open in debug mode.Console.WriteLine("Press any key to exit.");// Output: The area is 78.54