Question
Then write the code for problem B1: Declare an integer variable named: cats Declare an integer variable named: dogs Declare an integer variable named: animals
Then write the code for problem B1: Declare an integer variable named: cats Declare an integer variable named: dogs Declare an integer variable named: animals Use cout to print a prompt telling the user to enter a value for cats. Use a string ending with colon space and no endl for this prompt. In the same manner, get the value for dogs from the user Assign the sum of cats and dogs to the variable: animals Copy the following code and put it next: cout << "cats: " << cats << endl; In the same manner print dogs and animals. Align the quote marks (important) and align the << (not important) Then code the return 0, closing brace, and Execution results as in problem A1 Use an Interactive Development Environment (IDE) to build, correct errors, and execute your program. Copy everything printed by your program and paste them in the Execution results
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started