Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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.
practice
bubbleSort
code
4x4 ver 3
Async Multithreading
Kumaran - Regex IP Match
Non-User input - Random Controlled - Guessing Game
events
Intuit // C# // listing_4.11 (break // ryad Teylora..)
Plt-D v.0.9.3
Please log in to post a comment.