Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Interface
//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 { interface Iinterface1 { int addition(int a,int b); int sub(int a,int b); } interface Iinterface2 { int mul(int a,int b); int div(int a,int b); } public class Class: Iinterface1, Iinterface2 { public int addition(int a, int b) { Console.WriteLine(a+b); return a+b; } public int sub(int a, int b) { Console.WriteLine(a-b); return a-b; } public int mul(int a, int b) { Console.WriteLine(a*b); return a*b; } public int div(int a, int b) { Console.WriteLine(a/b); return a/b; } } public class Program { public static void Main(string[] args) { //Your code goes here Console.WriteLine("Hello, world!"); Class c=new Class(); c.addition(2,3); c.sub(3,1); c.mul(2,5); c.div(10,2); } } }
run
|
edit
|
history
|
help
0
Hello world... I need cc!!
code
Card Shuffling
Intuit // C# // Lecture_4 // Laba_#2
Enumeration
ERGDV CSXDXS
Task 1_4
Lab7
DateTime.Now.Date
MY