Search for Knowledge
“A mistake is a signal that it is time to learn something new, something you didn’t know before.”

Coding Console Application Max Min Variabel

Console Application
Mencari Data Max dan Min. Nilai dari suatu variabel byte, short, integer, long, single, dan double

Pada gambar diatas merupakan coding, dari suatu software Microsoft Visual Studio. Console Application yang berisi dengan coding :

Import System.Console
Module Module1

    Sub Main ()
        WriteLine (“Batas Maksimum Byte {0}”, Byte.MaxValue
        WriteLine (“Batas Minimum Byte {0}”, Byte.MinValue
        WriteLine()
        WriteLine (“Batas Maksimum Short {0}”, Short.MaxValue
        WriteLine (“Batas Minimum Short {0}”, Short.MinValue
        WriteLine()
        WriteLine (“Batas Maksimum Integer {0}”, Integer.MaxValue
        WriteLine (“Batas Minimum Integer {0}”, Integer.MinValue
        WriteLine()
        WriteLine (“Batas Maksimum Long {0}”, Long.MaxValue
        WriteLine (“Batas Minimum Long {0}”, Long.MinValue
        WriteLine()
        WriteLine (“Batas Maksimum Single {0}”, Single.MaxValue
        WriteLine (“Batas Minimum Single {0}”, Single.MinValue
        WriteLine()
        WriteLine (“Batas Maksimum Double {0}”, Double.MaxValue
        WriteLine (“Batas Minimum Double {0}”, Double.MinValue
        ReadLine()
    End Sub
End Module

Hasil Outputnya  ketika di run adalah :