mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
18 lines
323 B
C
18 lines
323 B
C
#include <stdio.h>
|
|
#include <board.h>
|
|
#include <math.h>
|
|
|
|
int main(void)
|
|
{
|
|
double x = 1234567./1024., z;
|
|
while (1) {
|
|
x += 0.1;
|
|
z = x - floor(x);
|
|
if (z >= 1) {
|
|
putchar('+');
|
|
} else {
|
|
putchar('-');
|
|
}
|
|
}
|
|
}
|