Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.

Paste

Pasted as C by neo ( 5 years ago )
#include<stdio.h>
#include<Windows.h>
#include<unistd.h>
#include<time.h>


int main()
{

    struct timespec t;
    t.tv_sec = 0;
    t.tv_nsec = 666666L;
    

    while (1)
    {   
        
        for(int i = 1; i<=50; i++)
        {
            printf("o");
            
            printf("\b ");
            nanosleep(&t, NULL);
        }    
        
       
        for(int i = 1; i<=50; i++)
        printf("\b");
    
    }
return 0;
    
}

 

Revise this Paste

Children: 115774
Your Name: Code Language: