ఒక విలువను దాచడం
మీరు మళ్లీ ఉపయోగించుకునేలా ఒక సంఖ్యకు పేరు పెట్టండి.
ఒక చిన్న ఉదాహరణ
మొదట5
ఫలితం5
using System;
int seats = 5;
Console.WriteLine(seats);
5
ప్రకటనలు
రోజువారీ ఉదాహరణలు
ఒక బస్సులో 12 సీట్లు ఉన్నాయి. ఐదు సీట్లు తీసుకోబడ్డాయి. ఎన్ని సీట్లు ఖాళీగా ఉన్నాయి?
మొదట12 − 5
ఫలితం7
using System;
int seats = 12;
int taken = 5;
Console.WriteLine((seats - taken));
7
ఉదాహరణను రన్ చేయండి
dotnet new console --output Lesson
cp Program.cs Lesson/Program.cs
dotnet run --project Lesson