text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   rush03.c                                           :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: evgenkarlson <RTFM@42.fr>                  +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2020/02/14 12:33:14 by evgenkarlson      #+#    #+#             */
  /*   Updated: 2020/02/15 10:51:23 by evgenkarlson     ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  void	ft_putchar(char c);
  
  void	ft_print_manager(int x, char startchar, char midchar, char endchar)
  {
  	ft_putchar(startchar);
  	while ((x - 1) > 1)
  	{
  		ft_putchar(midchar);
  		x--;
  	}
  	if (x > 1)
  		ft_putchar(endchar);
  	ft_putchar('\n');
  }
  
  void	rush(int x, int y)
  {
  	if (x > 0 && y > 0)
  	{
  		ft_print_manager(x, 'A', 'B', 'C');
  		y--;
  		while (y > 1)
  		{
  			ft_print_manager(x, 'B', ' ', 'B');
  			y--;
  		}
  		if (y > 0)
  			ft_print_manager(x, 'A', 'B', 'C');
  	}
  }
  