कोडची उदाहरणे

डिलिव्हरीनंतर पार्सल मोजा

जे आले ते जोडा, मग जे गेले ते वजा करा.

एक सोपे उदाहरण

सुरुवातीला2 + 3 − 1
निकाल4
Program.cs
using System;

Console.WriteLine(((2 + 3) - 1));
आउटपुट
4
जाहिराती

रोजच्या आयुष्यातील उदाहरणे

दोन खोक्यांमध्ये ६ आणि ४ पार्सल आहेत. तीन पार्सल बाहेर जातात. किती शिल्लक आहेत?

सुरुवातीला6 + 4 − 3
निकाल7
Program.cs
using System;

int first = 6;
int second = 4;
int sent = 3;
Console.WriteLine(((first + second) - sent));
आउटपुट
7
उदाहरण चालवा
टर्मिनल
dotnet new console --output Lesson
cp Program.cs Lesson/Program.cs
dotnet run --project Lesson
अधिकृत मार्गदर्शक