Guest User

Untitled

a guest
Feb 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. Dim String1 As String
  2. Dim MyAns As String
  3. Dim StringR As String
  4. Console.Write("Enter a String with No of first letter Occurences: ")
  5. String1 = Console.ReadLine
  6. StringR = String1.Replace(Left(String1, 1), "*")
  7. MyAns = Left(String1, 1) & Mid(StringR, 2, Len(String1))
  8. Console.WriteLine(MyAns)
  9. Console.ReadKey()
Add Comment
Please, Sign In to add comment