nctref/tests/functions.nct

13 lines
141 B
Plaintext
Raw Normal View History

2024-11-25 17:36:03 +02:00
extern s32() getchar;
extern u0(s32) putchar;
2023-08-27 19:48:06 +03:00
loop {
2024-11-25 18:35:11 +02:00
s32 z = 5;
2024-11-25 17:36:03 +02:00
s32 a = getchar();
if(a == -1) {
break;
2023-08-27 19:48:06 +03:00
}
2024-11-25 17:36:03 +02:00
putchar(a);
putchar(z);
}