public class Reset { public double oldNumber; public string active; public bool Activet; public Reset(double x, string y, bool z) { oldNumber = x; active = y; Activet = z; } }
Console.WriteLine(""); string c = Console.ReadLine(); if (int.TryParse(c, out var result)) { Console.WriteLine($"Thanks for giving me the following number: {result}!"); } else { Console.WriteLine("You didn't give me a valid number :c"); }
while (beetween != "+" && beetween != "-" && beetween != "*" && beetween != "/"){Console.WriteLine(" Please make sure you use");Console.WriteLine(" + or - or * or /");beetween = Convert.ToString(Console.ReadLine());}