Custom Search

Friday, October 23, 2009

C++ Age

#include
using namespace std;
int main(){
int age;
cout << "How old are you?" << endl;
cin >> age;
cout << "You are " << age << " years old" << endl;
cin.ignore();
cin.get();
return 0;
}

No comments:

Post a Comment