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
- {
- class Program
- {
- public class konty
- {
- public int a;
- public int b;
- public int c;
- public konty()
- {
- a = 0;
- b = 0;
- c = 0;
- po
- }
- public konty(int _a, int _b, int _c)
- {
- a = _a;
- b = _b;
- c = _c;
- }
- public void napisz(int _a, int _b, int _c)
- {
- a = _a;
- b = _b;
- c = _c;
- }
- public void napisz(int _a, int _b, int _c double _pole;)
- {
- a = _a;
- b = _b;
- c = _c;
- pole = _pole;
- }
- public void obw()
- {
- obw = a + b + c;
- }
- }
- static void Main(string[] args)
- {
- konty kont = new konty();
- konty prost = new konty(2, 1, 2);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement