Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

bn fnhhn

Option Strict On
Module Module1


    Sub Main()
        Dim days As Integer = CInt(Console.ReadLine())
        Dim weeks As Integer = 0
        If days > 7 Then
            weeks = CInt(days / 7)
            days = days - weeks * 7

        End If
        If weeks > 0 Then
            Console.WriteLine(weeks & " weeks and " & days & " days")
        Else
            Console.WriteLine(days & " days ")

        End If





        Console.ReadKey()

    End Sub

End Module

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.