Write a program in C# Sharp to get the day and month name of current date
- برمجة سي شارب
- برمجة
- 2021-06-01
- ahmadghneem
الأجوبة
using System;
class dttimeex49
{
static void Main()
{
Console.Write("\n\n Display the month no. and name for the current date :\n");
Console.Write("---------------------------------------------------------\n");
DateTime now = DateTime.Now;
Console.WriteLine(" The current Month No. is : {0} ",now.Month);
Console.WriteLine(" The current Month is : {0}\n",now.ToString("MMMM"));
}
}أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال