text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   rush04.c                                           :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: kdereshe <marvin@42.fr>                    +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2019/10/26 14:11:35 by kdereshe          #+#    #+#             */
  /*   Updated: 2019/10/27 18:25:59 by kdereshe         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  void	ft_putchar(char c);
  
  void	rush(int y, int x)
  {
  	int i;
  	int j;
  
  	if (y < 0)
  		return ;
  	i = 1;
  	while (i <= x)
  	{
  		j = 1;
  		while (j <= y)
  		{
  			if ((i == 1 && j == 1) || (i != 1 && j != 1 && i == x && j == y))
  				ft_putchar('A');
  			else if ((i == 1 && j == y) || (i == x && j == 1))
  				ft_putchar('C');
  			else if (i != 1 && j != 1 && i != x && j != y)
  				ft_putchar(' ');
  			else
  				ft_putchar('B');
  			j++;
  		}
  		ft_putchar('\n');
  		i++;
  	}
  }
  