Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Include a standard library for input/output
- #include <iostream>
- // This is where your program starts.
- int main()
- {
- int health; // Let the computer know that you want a variable named 'health' as an integer.
- std::cout << "Enter your health: "; // Print something to the console.
- std::cin >> health; // Get some user input, and put it into health.
- std::cout << "Your health is: " << health << std::endl; // Tell the user their health.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement