Advertisement
nein_yards

Untitled

Jan 30th, 2021
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. Module Module1
  2. Sub Main()
  3. Dim friends(4) As String
  4. For i = 0 To 4
  5. Console.WriteLine("Enter your friend's name")
  6. friends(i) = Console.ReadLine()
  7. Next
  8.  
  9. Dim foods(4) As String
  10. For i = 0 To 4
  11. Console.WriteLine("Enter " & friends(i) & "'s favourite food")
  12. foods(i) = Console.ReadLine()
  13. Next
  14.  
  15. Console.WriteLine("MY FRIEND'S FAVORITE FOODS")
  16. Console.WriteLine("Friend".PadLeft(8) & "|" & "Favourite Food".PadLeft(15))
  17. Console.WriteLine("".PadLeft(8, "-") & "+" & "".PadLeft(15, "-"))
  18. For i = 0 To 4
  19. Console.WriteLine(friends(i).PadLeft(8) & "|" & foods(i).PadLeft(15))
  20. Next
  21. Console.ReadLine()
  22. End Sub
  23. End Module
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement