Flip a coin

Run Settings
LanguageC
Language Version
Run Command
#include <stdio.h> #include <stdlib.h> #include <time.h> int main() { srand(time(NULL)); double r = (double)rand() / RAND_MAX; if (r < 0.495) printf("Tail\n"); else if (r < 0.99) printf("Head\n"); else printf("Steep\n"); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines