debut pile

This commit is contained in:
2024-01-08 14:05:33 +01:00
parent c4bc163fe6
commit cffb424f64
29 changed files with 442 additions and 7 deletions

15
DEV1.1/CM2/lightness.c Normal file
View File

@@ -0,0 +1,15 @@
#include<stdlib.h>
#include<stdio.h>
#include<time.h>
#include <lightness.h>
#define LIGHT 0
#define DARK 1
int lightness(void) {
if (time(NULL)%2) {
return LIGHT;
} else {
return DARK;
}
}