sleep function in c

C
//sleep function provided by <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
 
int main(){
  
	printf("Sleeping for 5 seconds \n");
	sleep(5);
	printf("Wake up \n");  
}#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
 
int main(){
  
	printf("Sleeping for 5 seconds \n");
	sleep(5);
	printf("Sleep is now over \n");  
}#include <unistd.h>

unsigned sleep(unsigned seconds);sleep(5); //sleep for 5 secs#include <Windows.h>
 
int main()
{
    Sleep(500);
}
Source

Also in C: