DONUT in c++


Notes : 

I used: i686-w64-mingw32-gcc donut.c -lm to make an .exe output.
any idears?

I tried: i686-w64-mingw32-gcc donut.c && ./a.exe and th donut spins, but verry slow and i can now output an .exe

Edit 2: When I start te standalone exe it just prints a lot of donuts. Bute when it is started in a termenial (cmd/powershell) it spinns slow

Download the file and add missing header files to code

#include <stdio.h>
#include <string.h>

then just compile and run

$ gcc donut.c && ./a.out

it looks best with white text and black background

İnclude those lines top of the code and compile your code with -lm
#include <stdio.h>
#include <string.h>
#include <math.h>

<iframe width=”560″ height=”315″ src=”″ title=”YouTube video player” frameborder=”0″ allow=”accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture” allowfullscreen></iframe>

Aditya Gaurav

Aditya Gaurav

Simple man, evolving every jiffy.