From 973e27b243ea7f12b6743894465c67a4a6a87eb2 Mon Sep 17 00:00:00 2001 From: Carlos Maiolino Date: Sat, 6 Sep 2025 09:26:21 +0200 Subject: Move some other code here Signed-off-by: Carlos Maiolino --- C/HF/bermuda.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 C/HF/bermuda.c (limited to 'C/HF/bermuda.c') diff --git a/C/HF/bermuda.c b/C/HF/bermuda.c new file mode 100644 index 0000000..d1657c5 --- /dev/null +++ b/C/HF/bermuda.c @@ -0,0 +1,21 @@ +#include + +int +main(void) +{ + float latitude; + float longitude; + char info[80]; + int started = 0; + + while (scanf("%f,%f,%79[^\n]",&longitude, &latitude, info) == 3) { + + if ((longitude > -76 && longitude < -64) && + (latitude > 26 && latitude < 34)) + printf("%f,%f,%s\n",longitude, latitude, info); + } + + return 0; +} + + -- cgit v1.2.3