12345678910111213141516171819202122232425262728293031323334353637383940 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ГончароваНЕ_ПР3
- {
- internal class zadanie4
- {
- int Sroom;
- int SPlitki;
- public int value_Sroom
- {
- set
- {
- Sroom = value;
- }
- }
- public int value_SPlitki
- {
- set
- {
- SPlitki = value;
- }
- }
- public double countPlinki
- {
- get
- {
- double countPlinki = Sroom / SPlitki;
- if (countPlinki % 2 != 0)
- {
- countPlinki = Math.Round(countPlinki);
- }
- return countPlinki;
- }
- }
- }
- }
|