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;
- namespace WindowsFormsApplication2
- {
- public class Class1
- {
- public double textbox1;
- public double textbox2;
- public double textbox3;
- public void Class(double x, double y)
- {
- textbox1 = x;
- textbox2 = y;
- }
- public double srednia()
- {
- return (textbox1 + textbox2) / 2;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement