Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Delegaty
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { delegate int OperacjeLiczbowe(int x, int y); public static void Main(string[] args) { Console.WriteLine("Hello, world!"); OperacjeLiczbowe ol = Dodawanie; ol+= Odejmowanie; ol+= Mnozenie; ol+=Szalenstwo; ol(12,32); ol(1,1); } public static int Dodawanie(int x, int y) { Console.WriteLine(x+y); return x+y; } public static int Odejmowanie(int x, int y) { Console.WriteLine(x-y); return x-y; } public static int Mnozenie(int x, int y) { Console.WriteLine(x*y); return x*y; } public static int Szalenstwo(int x, int y) { Console.WriteLine((x*x) * (y*y)); return (x*x) * (y*y); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Merge Sort
Write a program to count the occurrence of each distinct item in the array?
derfgtredwcdf
Sort String
ConcurrentDictionary<T>
Event .net guidelines
Sample
Preprocessor in C# (#define and conditional operatives)
TestApp
jjj4
Please log in to post a comment.