Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void rush(int x, int y)
- {
- for(int i = 1; i <= y; i++)
- {
- for(int j = 1; j <= x; j++)
- {
- if (((j == 1) && (i == 1)) ||
- ((j == 1) && (i == y)))
- {
- ft_putchar('A');
- }
- else if ((j > 1) &&
- (j < x) &&
- (i > 1) &&
- (i < y))
- {
- ft_putchar(' ');
- }
- else if (((j == x) && (i == 1)) ||
- ((j == x) && (i == y)))
- {
- ft_putchar('C');
- }
- else
- {
- ft_putchar('B');
- }
- }
- ft_putchar('\n');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement