add example of string collect

This commit is contained in:
Mylloon 2022-12-13 14:50:26 +01:00
parent fd6ca52efc
commit 245b7f26fe
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

17
tests/22_collect-str.test Normal file
View file

@ -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;
}