/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
using System;
class HelloWorld {
class MetotSinif
{
int Sayi;
public int SahteOzellik
{
set
{
if (value < 0) Sayi = 0;
else Sayi = value;
}
get
{
if (Sayi > 100) return Sayi / 100;
else return Sayi;
}
}
}
static void Main() {
MetotSinif nesne = new MetotSinif();
nesne.SahteOzellik = 200;
Console.WriteLine(nesne.SahteOzellik);
Console.ReadKey();
}
}