మొత్తం ధర లెక్కించడం
మొత్తం పొందడానికి వస్తువుల సంఖ్యను ఒక వస్తువు ధరతో గుణించండి.
ఒక చిన్న ఉదాహరణ
మొదట2 × 3
ఫలితం6
using System;
Console.WriteLine((2 * 3));
6
ప్రకటనలు
రోజువారీ ఉదాహరణలు
మూడు నోట్బుక్లు ఒక్కొక్కటి 4 రూపాయలు. మొత్తం ఎంత?
మొదట3 × 4
ఫలితం12
using System;
int notebooks = 3;
int price = 4;
Console.WriteLine((notebooks * price));
12
ఉదాహరణను రన్ చేయండి
dotnet new console --output Lesson
cp Program.cs Lesson/Program.cs
dotnet run --project Lesson