Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication1
- {
- public class Mnozenie
- {
- public int a;
- public int b;
- public Mnozenie(int x, int y)
- {
- a = x;
- b = y;
- }
- public void mnoz()
- {
- int wynik = a * b;
- Console.WriteLine(wynik);
- }
- }
- class Program
- {
- static void Main(string[] args)
- {
- Mnozenie m1 = new Mnozenie(5,2);
- m1.mnoz();
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement