From 9688990db4ce2078a0027315ca80b5717fc5cacd Mon Sep 17 00:00:00 2001 From: "martin@ashbysoft.com" Date: Mon, 6 Jun 2022 15:07:20 +0000 Subject: initial --- fahr-celc.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 fahr-celc.c diff --git a/fahr-celc.c b/fahr-celc.c new file mode 100644 index 0000000..ccef413 --- /dev/null +++ b/fahr-celc.c @@ -0,0 +1,13 @@ +#include + +/* print farenheight-celcius +conversion table for 0, 20, ...300 */ +int main() { + for (float fahr=0.0; + fahr<=300.0; + fahr+=20.0) { + printf("%3.0f %6.1f\n", + fahr, + (5.0/9.0)*(fahr-32.0)); + } +} -- cgit v1.2.3-ZIG