際際滷

際際滷Share a Scribd company logo
ROUNDING NUMBERS
  CAN YOU HANDLE IT?
Rounding Numbers
Module Module1

   Sub Main()

       Dim number As Double
       number = 10.6

       Console.WriteLine(Math.Round(number))

       Console.ReadLine()


   End Sub

End Module
Rounding Program
Module Module1

    Sub Main()

        Dim number As Double
        number = 10.6

        Console.WriteLine(ENTER THE NUMBER YOU WANT TO ROUND ")
        number = Console.ReadLine()
        Console.WriteLine(Math.Round(number))

        Console.WriteLine(YOUR NUMBER ROUNDED IS " & number )

        Console.ReadLine()

    End Sub

End Module

More Related Content

Rounding numbers

  • 1. ROUNDING NUMBERS CAN YOU HANDLE IT?
  • 2. Rounding Numbers Module Module1 Sub Main() Dim number As Double number = 10.6 Console.WriteLine(Math.Round(number)) Console.ReadLine() End Sub End Module
  • 3. Rounding Program Module Module1 Sub Main() Dim number As Double number = 10.6 Console.WriteLine(ENTER THE NUMBER YOU WANT TO ROUND ") number = Console.ReadLine() Console.WriteLine(Math.Round(number)) Console.WriteLine(YOUR NUMBER ROUNDED IS " & number ) Console.ReadLine() End Sub End Module