I'm trying to make a typing animation in my C program, but it's taking forever because I have to use the sleep() function after every letter. Writing something long seems impossible. If I have to I'll do it this way, but I'd rather not.
Code:#include <stdio.h> #include <unistd.h> int main() { printf ("T"); sleep(100); printf ("h"); sleep(100); printf ("i"); sleep(100); printf ("s "); sleep(100); printf ("i"); sleep(100); printf ("s "); sleep(100); printf ("a "); sleep(100); printf ("t"); sleep(100); printf ("e"); sleep(100); printf ("s"); sleep(100); printf ("t"); getchar(); }