Lecture4
Lecture4
For example:
int age = 25;
Example:
#include <iostream>
using namespace std;
int main() {
int age;
cout << "Enter your age: ";
cin >> age; // User inputs a value
cout << "You are " << age << " years old." <<
endl;
return 0;
}
Output Example:
Enter your age: 25
You are 25 years old.