add example of string collect
This commit is contained in:
parent
fd6ca52efc
commit
245b7f26fe
1 changed files with 17 additions and 0 deletions
17
tests/22_collect-str.test
Normal file
17
tests/22_collect-str.test
Normal 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;
|
||||||
|
}
|
Reference in a new issue