Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Calculation
- {
- public int Add( int a, int b ) { return a + b; }
- public int Sub( int a, int b ) { return a - b; }
- public int Mul( int a, int b ) { return a * b; }
- public int Div( int a, int b )
- {
- if( ( a == 0 ) || ( b == 0 ) )
- return 0;
- else
- return a / b;
- }
- public void Print( int c )
- {
- System.Console.WriteLine( "Print : {0}", c );
- }
- }
Add Comment
Please, Sign In to add comment