write a program to print day of week name using select case in visual basic 6.0
I have tried this many times but did't got my answer plz help me
I have tried this many times but did't got my answer plz help me
public function whatday(day as Integer) as String
select case day
case 1: whatday = "Sunday"
case 2: whatday = "Monday"
case 3: whatday = "Tuesday"
case 4: whatday = "Wednesday"
case 5: whatday = "Thursday"
case 6: whatday = "Friday"
case 7: whatday = "Saturday"
case else: whatday = "Must use from 1 to 7."
end select
end function
Comment