DEV/BUT1/DEV1.1/CM2_2/CM2/lightness.c
2024-02-01 13:55:03 +01:00

13 lines
176 B
C

#include <stdlib.h>
#include <stdio.h>
#include<time.h>
#include "lightness.h"
int lightness(void) {
if (time(NULL)%2) {
return LIGHT;
} else {
return DARK;
}
}