Question: Jump to level 1 numFish and numTanks are read from input representing the number of fish per tank and the number of tanks a
Jump to level 1 numFish and numTanks are read from input representing the number of fish per tank and the number of tanks a fish hatchery has, respectively. Assign the variable totalFish with the total number of fish in the hatchery. Ex: If the input is: 8 6 then the output is: 48 1 #include 2 using namespace std; 4 int main() 5 6 7 8 9 10 11 12 13 14 15 16 17) int numFish; int numTanks; int totalFish; cin >> numFish; cin >> numTanks; cout < < totalFish < < endl; return 0; [ C
Step by Step Solution
3.42 Rating (158 Votes )
There are 3 Steps involved in it
Corrected version of the code in C cpp include using namespace std int main in... View full answer
Get step-by-step solutions from verified subject matter experts
