From 245b7f26fea7418a389fafac4a502d78123e86b7 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 13 Dec 2022 14:50:26 +0100 Subject: [PATCH] add example of string collect --- tests/22_collect-str.test | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/22_collect-str.test diff --git a/tests/22_collect-str.test b/tests/22_collect-str.test new file mode 100644 index 0000000..cbe4ffa --- /dev/null +++ b/tests/22_collect-str.test @@ -0,0 +1,17 @@ +int main () { + puts("Enter a number: "); + int a = geti(); + + puts("Enter a number: "); + int b = geti(); + + puts("The sum of your numbers is: "); + puti(a + b); + puts("\n"); + + puts("The product of your numbers is: "); + puti(a * b); + puts("\n"); + + return 0; +}