Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- string inString;
- inString = Console.ReadLine();
- MyFunction(inString); // This would print out "The passed parameter was: Wordddddds!"
- AddTogether(1, 3); // This would print out "4";
- AddSix(5); // This would print out "11";
- Console.Read();
- }
- static void MyFunction(string passedString)
- {
- Console.WriteLine("The passed parameter was: " + passedString);
- }
- static int AddTogether(int firstnumber, int secondNumber)
- {
- return firstnumber + secondNumber;
- }
- static void AddSix(int Param1)
- {
- int numbersix = 6;
- int result = Param1 + numbersix;
- Console.WriteLine(result);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement