Answers for "c sleep program with loop"

C#
6

sleep in c programming

//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");  
}
Posted by: Guest on June-03-2020
1

sleep in c programming

#include <stdlib.h>
#include <stdio.h>
// this library provides sleep() function.
#include <unistd.h>
int main()
{  
	printf("sleeping");
	sleep(5);
	printf("nWoke up");  
}
Posted by: Guest on February-01-2022

C# Answers by Framework

Browse Popular Code Answers by Language