input: Write a function to print all elements greater than 50 from a given list. The function should iterate through the list and print each element that meets the condition.
  
  def print_greater_than_50(nums):
      for num in nums:
          if num > 50:
              print(num)
  
  # Test cases
  nums1 = [2, 60, 5, 4, 78, 32, 99]
  print_greater_than_50(nums1) # Expected output: 60 \n 78 \n 99
  
  nums2 = [50, 51, 49, 52, 48, 53]
  print_greater_than_50(nums2) # Expected output: 51 \n 52 \n 53
  
  nums3 = []
  print_greater_than_50(nums3) # Expected output: (no output)
  
  nums4 = [30, 40, 50, 60, 70, 80]
  print_greater_than_50(nums4) # Expected output: 60 \n 70 \n 80
output: def print_greater_than_50(nums):
      for num in nums:
          if num > 50:
              print(num)