subject

Consider the following program:

#include
using namespace std;
void func1();
void func2();
int main()
{
int num;
cout << "Enter 1 or 2: ";
cin >> num;
cout << endl;
cout << "Take ";
if (num == 1) func1();
else if (num == 2) func2();
else cout << "Invalid input. You must enter a 1 or 2" << endl;
return 0;
}
void func1()
{
cout << "Programming I." < }
void func2()
{
cout << "Programming II." < }

1. What is the output if the input is 1?
2. What is the output if the input is 2?
3. What is the output if the input is 3?
4. What is the output if the input is -1?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:40
Adna sequence encoding a five-amino acid polypeptide is given below. …… …… locate the sequence encoding the five amino acids of the polypeptide, and identify the template and coding strand.
Answers: 1
question
Computers and Technology, 21.06.2019 20:20
Sometimes writers elaborate on the truth when recalling past events so they can enhance their narrative essay with more interesting descriptions. do you feel that published writers should or should not embellish real life events just to make their stories more interesting?
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Quic which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
question
Computers and Technology, 23.06.2019 06:20
Which text function capitalizes the first letter in a string of text? question 10 options: upper capital first proper
Answers: 1
You know the right answer?
Consider the following program:

#include
using namespace std;
void func1();...
Questions
question
English, 01.04.2021 21:40
question
Mathematics, 01.04.2021 21:40
question
Arts, 01.04.2021 21:40
question
History, 01.04.2021 21:40
question
Mathematics, 01.04.2021 21:40
question
Biology, 01.04.2021 21:40
Questions on the website: 13722359