#include <stdio.h>
/*
void ft_putchar(void) //in ft_putchar.c
{
}
*/
void rush(int x, int y) //in rush04.c
{
int id_x = 0;
int id_y = 0;
while(id_y++ <= y)
{
while(id_x++ <= x)
{
if(id_y == 1)
{
if(id_x == 1)
write(1, 'A', 1);
else if(id_x == x)
write(1, 'C', 1);
else
write(1, 'B', 1);
}
else if(id_y == y)
{
if(id_x == 1)
write(1, 'C', 1);
else if(id_x == x)
write(1, 'A', 1);
else
write(1, 'B', 1);
}
else
{
if(id_x == 1 || id_x == x)
write(1, 'B', 1);
else
write(1, " ", 1);
}
}
}
}
int main() { //will be modified during defense
rush(5,4);
return (0);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: