{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Example2_29b - cout<<"Enter the first name"...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
} //A properly formatted C++ program. / #include <iostream> #include <string> # using namespace std; u int main() { int num; double height; string name; cout << "Enter an integer: "; cin >> num; cout << endl; cout << "num: " << num << endl;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cout << "Enter the first name: "; cin >> name; cout << endl; cout << "Enter the height: "; cin >> height; cout << endl; cout << "Name: " << name << endl; cout << "Height: " << height << endl; return 0; ±...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online