Introduction
In this blog we create a program which show the week name
after the specific days. In this program we take input from user in number of
days and then show the date and week day name by adding that days in current
date.
Code
Output
Explanation
- In above code first we take input from user and convert that input I integer.
- Then we add that number of days in current date by AddDays method of DateTime data type.
- Then we print current date and date after those days. For day of the week, we use DayOfWeek property of DateTime object.
View Other program of C Sharps
Get Files List From Directory In C SharpC Sharp Program For Check Total Occurrence Of a Number In an Array
Count Total Letters, Digits And Special Characters From String In C#
0 Comments