0% found this document useful (0 votes)
49 views1 page

Superal

The document is a C++ program that asks the user to guess details about a person like their age, birth month, place of birth, and favorite color and outputs whether the guesses are correct or not.

Uploaded by

jorgenovachrollo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views1 page

Superal

The document is a C++ program that asks the user to guess details about a person like their age, birth month, place of birth, and favorite color and outputs whether the guesses are correct or not.

Uploaded by

jorgenovachrollo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Superal

#include<iostream>
using namespace std;
int main() {

int age;
int height;
int monthofbirthday;
string placeofbirth;
string myfavoratecolor;

cout << "Hi there can you guess my age" << endl;
cin >> age;
if (age == 20) {
cout << "you got it right" << endl;
}
else {
cout << "you got it wrong" << endl;
}

cout << "How about the month of my birthday" << endl;


cin >> monthofbirthday;
if (monthofbirthday == 2) {
cout << "you got it right" << endl;
}
else {
cout << "you got it wrong" << endl;
}

cout << "How about my place of birth" << endl;


cin >> placeofbirth;
if ("manila") {
cout << "you got it right\n";
}
else {
cout << "you got it wrong" << endl;
}

cout << "How about my favorate color" << endl;


cin >> myfavoratecolor;
if ("black") {
cout << "you got it right\n";
}
else {
cout << "you got it wrong" << endl;
}

return 0;
}

You might also like