C Language:
#1 The native C code, runs on all compilers, without colored text.
#1 The native C code, runs on all compilers, without colored text.
main(){int i;for(i=0;i<4;i++){printf("Happy Birthday");i!=3?i==2?puts(" dear name!"):puts(" to you,"):puts(" to you.");}}
#2 This one is 100% accurate, tested on Pelles C. (Define compatibility names enabled in compiler settings)
main(){int i;for(i=0;i<4;i++){textcolor(3);printf("Happy Birthday");textcolor(7);i!=3?i==2?puts(" dear name!"):puts(" to you,"):puts(" to you.");}}