Ay: Nisan 2020

  • Finding the sum of two numbers with C#

    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace odev1 { class Program { static void Main(string[] args) { int a, b; string a1, a2; Console.Write(“First number: “); a1 = Console.ReadLine(); while (true) { if (int.TryParse(a1, out a)) { break; } else { Console.Write(“No valid value was entered for the first number. Re-enter: […]