using System;
Console.WriteLine("exammple {0}", "nice");
//mathmaticstips
Math.Pow(2, 8);
Math.Sqrt(256);
Math.Ceiling(10.2);
//up
Math.Floor(10.2);
//below
Math.Round(10.2);
//inteligent rounding
Math.Min(10, -10);
Math.Max(10, -10);
Convert.ToUInt32(120.050);
// a lot of convertss
string.Format("exammple {0}", "nice");
string.IsNullOrEmpty("");
string.IsNullOrWhiteSpace(" ");
var twelve = "Suheil";
twelve.StartsWith("Su");
twelve.EndsWith("il");
twelve.Substring(2, 3);
//gives the 2nd and 3 rd letters.
"Suheil ,mustaklem,sami,sima".Split(',');
var val = "123a";
//try
//{
//var myint = int.Parse(val);
//Console.WriteLine(myint);
//}
//catch (Exception ex)//use exception for specific things not for logic
// Console.WriteLine(ex.ToString());
int result;
//int.TryParse(val, out result);
//error handling
//var success = int.TryParse(val, out result);
//Console.WriteLine("Succees: {0}", success);
//Console.WriteLine("Fail: {0}", result);
Console.WriteLine(
int.TryParse(val,out result)
? result
: 100);