C colourful text

To print colorful text in C, you can use escape sequences with ANSI color codes. Here's an example:

#include <stdio.h>

int main() {
    printf("\033[1;31mThis is red text\033[0m\n");
    printf("\033[1;32mThis is green text\033[0m\n");
    printf("\033[1;33mThis is yellow text\033[0m\n");
    printf("\033[1;34mThis is blue text\033[0m\n");
    printf("\033[1;35mThis is magenta text\033[0m\n");
    printf("\033[1;36mThis is cyan text\033[0m\n");
    printf("\033[1;37mThis is white text\033[0m\n");

    return 0;
}

This code uses the escape sequence \033[, followed by the color code, and then m to set the color. The color code 1;31 represents red, 1;32 represents green, 1;33 represents yellow, 1;34 represents blue, 1;35 represents magenta, 1;36 represents cyan, and 1;37 represents white. After printing the colored text, \033[0m is used to reset the color to the default.

When you run this code, you will see the text displayed in the respective colors.