Struggling on C++ Input and Output /Print

I have to do C++ program that input the number 3 and prints yes I consent for to attend and a second input of the 6 and prints out Please send an alert when she is leaving the event.


1
2
3
4
5
6
7

#include <iostream>

int main(int argc, const char * argv[]) {
    std::cout << "1\n";
    return 0;
}
cpp.sh/7sr5g

i really do'nt understand what you mean. I hope this kind of helps you.
Last edited on
like this?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <iostream>
using namespace std;
int main()
{
	int num1, num2;

	cout << "Enter a number." << endl;
	cin >> num1;

	if (num1 == 3)
	{
		cout << "yes I consent for to attend" << endl;
	}

	cout << "Enter a number." << endl;
	cin >> num2;

	if (num2 == 3)
	{
		cout << "Please send an alert when she is leaving the event." << endl;
	}


	return 0;
}
Sorry for any confusion and certainly thanks for taking the time to even respond.


My intent are to prompt the user to:

Enter a number 1
Number 1 is entered
print out - be yes I consent for to attend.

Next

Enter a number 2
Number 1 is entered at prompt
Please send an alert when she is leaving the event

end
Topic archived. No new replies allowed.