Question: Write a program in C# that has a main method and a Calculate method. In the main method, the user enters two strings; the

Write a program in C# that has a main method and a Calculate method. In the main method, the user enters two strings; the Calculate method is invoked and the two strings are passed with another string names concat as arguments. Calculate(a, b, ? concat); // replace ? with a proper keyword In the Calculate method, the two strings (that are passed from the main method) are concatenated and the new concatenated string is assigned to the variable concat. In the main method the value of concat is printed out. Note: you must use a special keyword to pass the arguments without initializing in the main method
Step by Step Solution
There are 3 Steps involved in it
using System class Program static void Mainstring args string input1 input2 Con... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
663d8e5380b69_965452.pdf
180 KBs PDF File
663d8e5380b69_965452.docx
120 KBs Word File
