6.2.3: Print functions. C++ CODE ONLY
CHALLENGE 6.2.3: Print functions. ACTIVITY 301722.2037154xpectory? Jump to level 1 Define a function PrintAnimals List that takes three string parameters and outputs as follows, ending with a newline. The function should not return any value. Ex: If the input is tortoise owl penguin, then the output is: Animals list: * tortoise * owl * penguin 1 #include <iostream> 2 using namespace std; NM600 3 4 5 6 int main() { 7 string animal1; string animal2; string animal3; 8 9 10 11 12 13 14 15 16 17 18 } cin >> animal1; cin >> animal2; cin>> anima13; PrintAnimalsList (animal1, animal2, animal3); return 0; 1 2 3 4 I 4
6.2.3: Print functions. C++ CODE ONLY
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am