Question: C# Main Method help? Can anyone help?? I am having difficulty. \n\nA C# solution with a  Main ( ) method that holds an integer variable named seconds to which you will assign a value. Create a method to which you pass this value. The method displays the seconds in minutes and seconds. As an example 66 seconds is 1 minute and 6 seconds.

Answer: is this for homework???\n\n\nclass TestClass\n{\n    static void Main(string[] args)\n    {\n        int sec;\n         sec = args[0];\n      displayTime(sec);\n    }\n       void displayTime(int sec)\n      {\n       System.Console.WriteLine( sec / 60 + "  " + sec - ((sec/60) * 60));\n}\n}
This question from the Yahoo Q&A forum is categorized in the topic: Science & Mathematics