Advertisement
calfred2808

Formatting Strings

Jun 23rd, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                                                                    
  2.  
  3. Module Module1
  4.  
  5. Sub Main()
  6.  
  7. Dim stringkoto As String = Nothing
  8.  
  9. Console.WriteLine("Enter your strings: ")
  10. stringkoto = Console.ReadLine()
  11.  
  12. Console.WriteLine("Enter your decimal strings: ")
  13. Dim doublekoto As Double = Console.ReadLine()
  14.  
  15. Console.WriteLine()
  16. Console.WriteLine(String.Format("{0:n2}", doublekoto))
  17.  
  18. Console.WriteLine(stringkoto.ToUpper)
  19. Console.WriteLine(stringkoto.ToLower)
  20.  
  21.  
  22. Console.ReadLine()
  23.  
  24. End Sub
  25.  
  26. End Module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement