Professional Documents
Culture Documents
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace cas4
{
class Program
{
static void Main(string[] args)
{
//var now = DateTime.Now;
//Console.WriteLine(now.ToShortDateString());
//Console.WriteLine(now.ToLongTimeString());
//Console.WriteLine(now.ToShortTimeString());
//var today = DateTime.Today;
//Console.WriteLine(today);
//Console.WriteLine(DateTime.Today.AddDays(3));
//Console.WriteLine(DateTime.Today.AddMonths(1));
//Console.WriteLine(DateTime.Today.AddMonths(1).AddDays(3));
//Console.WriteLine(DateTime.Today.AddYears(1).AddMonths(2));
//Console.WriteLine(DateTime.Today.ToString("MMMM"));
//Console.WriteLine(DateTime.Today.ToString("dd"));
//Console.WriteLine(DateTime.Now.Year);
return (a - b) / 10000;
//Substrings(5);
//working with methods, dates and strings
//sekogash funkcijata pripagja na nekoj objekt i ja vikame metoda
//ako ne staime return vo js funkcijata kje vrati undefined
//mora da se int Add(int x, int y){
// return x+y;
//}
//string builder za generiranje na stringovi
//Print(Add(3, 4));
//while (true) {
// Console.Clear();
// Console.WriteLine("please enter an operator (you could enter + or
-) ");
// if (Operator == "+")
// {
// Console.WriteLine(Add(numberOne, numberTwo));
// Console.ReadLine();
// }
// else if (Operator == "-")
// {
// Console.WriteLine(Subst(numberOne, numberTwo));
// Console.ReadLine();
// }
// else
// {
// Console.WriteLine("not a valid");
// }
//}
//custom and standard numeric format strings
}
//---------------------------------------//
//}
//za doma nie da kazeme koj string i kade da presece i pc to da napravi dva
stringa od toa edno
//static int Add(int first, int second)
//{
// return first + second;
//}
//}
}
}