This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| class DirtyCodeExample | |
| { | |
| static void Main(string[] args) | |
| { | |
| string choice; | |
| int a, b; | |
| double result; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| class DirtyCodeExample | |
| { | |
| static void Main(string[] args) | |
| { | |
| Console.WriteLine("Welcome to the secret code generator!"); | |
| string choice; | |
| do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| class SmellyCodeExample | |
| { | |
| static void Main(string[] args) | |
| { | |
| Console.WriteLine("Choose a shape:\n1. Circle\n2. Square"); | |
| string choice = Console.ReadLine(); | |
| if (choice == "1") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| class DirtyCodeExample | |
| { | |
| static void Main(string[] args) | |
| { | |
| int[] a = new int[10]; | |
| int[] b = new int[10]; | |
| int[] c = new int[10]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| Console.WriteLine("Enter a number: "); | |
| string input = Console.ReadLine(); | |
| int number = Convert.ToInt32(input); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| class Program | |
| { | |
| static List<string> parkedCars = new List<string>(); | |
| static List<decimal> ticketPrices = new List<decimal>(); | |
| static void Main(string[] args) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| class Program | |
| { | |
| static List<string> patients = new List<string>(); | |
| static List<string> doctors = new List<string>(); | |
| static List<string> monitoredPatients = new List<string>(); | |
| static void Main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| class SalesRep | |
| { | |
| public string Name { get; set; } | |
| public double Latitude { get; set; } | |
| public double Longitude { get; set; } | |
| public SalesRep(string name, double latitude, double longitude) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| // Create a list to store bank accounts | |
| List<string> accountNumbers = new List<string>(); | |
| List<string> accountHolders = new List<string>(); | |
| List<decimal> accountBalances = new List<decimal>(); | |
| // Function to create a new bank account | |
| void CreateAccount(string accountNumber, string accountHolder) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <MudTable Items="@tajers"> | |
| <HeaderContent> | |
| <MudTh>الاسم الانكليزي </MudTh> | |
| <MudTh>الاسم العربي</MudTh> | |
| <MudTh>اللقب انكليزي</MudTh> | |
| <MudTh>اللقب عربي</MudTh> | |
| <MudTh>البريد الالكتروني</MudTh> | |
| <MudTh>الهاتف</MudTh> | |
| <MudTh>الوصف</MudTh> |
NewerOlder