A simple program to display the current day of the week using Visual Basic .NET programming language.
My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.
Please subscribe to my channel https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg
=================================================
You can buy my C++ book online at
https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/
You can buy my book in introduction to computer networking at
https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking
Want to support my channel?
GCash Account
Jake Pomperada
09173084360
Paypal
https://paypal.me/jakerpomperada
Patreon
https://www.patreon.com/jakerpomperada
Thank you very much for your support.
Program ListingModule Module1 Sub Main() Dim Days_of_the_Week As Integer Days_of_the_Week = Now.DayOfWeek Select Case Days_of_the_Week Case 1 Console.WriteLine("Today is Sunday") Case 2 Console.WriteLine("Today is Monday") Case 3 Console.WriteLine("Today is Tuesday") Case 4 Console.WriteLine("Today is Wednesday") Case 5 Console.WriteLine("Today is Thursday") Case 6 Console.WriteLine("Today is Friday") Case 7 Console.WriteLine("Today is Saturday") End Select Console.ReadKey() End Sub End Module
No comments:
Post a Comment