Computers and Technology

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?

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 09:50, shadow29916
What is a rush associated with alcohol?
Answers: 1
image
Computers and Technology, 22.06.2019 15:30, mariap3504
Whats are the different parts of no verbal comunication, especially body language?
Answers: 3
image
Computers and Technology, 23.06.2019 04:00, china236
In a word processing program, such as microsoft word, which feature to you choose the desired picture enhancement?
Answers: 2
image
Computers and Technology, 23.06.2019 08:30, Bradgarner772
Based on your knowledge of a good network, describe what you think is a perfect network would be. what kind of information and resources could users share on this network. what would the network administrator do? what kind of communication would be used?
Answers: 1
Do you know the correct answer?
Consider the following program:

#include
using namespace std;
void func1();...

Questions in other subjects:

Konu
Social Studies, 12.08.2021 09:10