changeset 267:d92c7a06d714

add test/main_log.c
author anatofuz
date Mon, 27 Jan 2020 13:32:15 +0900
parents 597c79dd5851
children 640599067820
files src/test/main_log.c
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/test/main_log.c	Mon Jan 27 13:32:15 2020 +0900
@@ -0,0 +1,18 @@
+#include "../ln.h"
+#include "stdio.h"
+
+void print_ln(int n) {
+    printf("n = %d, ln = %d\n",n,ln(n));
+}
+
+int main() {
+   int n = 2; 
+   print_ln(1);
+   print_ln(10);
+   print_ln(100);
+   print_ln(1000);
+   print_ln(10000);
+   print_ln(100000);
+   return 0;
+}
+