Q:

Write a program in C# Sharp to create a user define function

0

Write a program in C# Sharp to create a user define function.

Expected Output :
Welcome Friends!
Have a nice day!

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

using System;
class funcexer1
{
    public static void welcome() 
    {
        Console.WriteLine("Welcome Friends!");
    } 
    public static void HaveAnice()
    {
        Console.WriteLine("Have a nice day!");
    }
    public static void Main()
    {
    Console.Write("\n\nSee, how to create an user define function :\n");
    Console.Write("------------------------------------------------\n"); 	
        welcome();
        HaveAnice();
		Console.Write("\n");
    }
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now