Advertisement
spacechase0

Health

Oct 19th, 2011
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. // Include a standard library for input/output
  2. #include <iostream>
  3.  
  4. // This is where your program starts.
  5. int main()
  6. {
  7.     int health; // Let the computer know that you want a variable named 'health' as an integer.
  8.    
  9.     std::cout << "Enter your health: "; // Print something to the console.
  10.     std::cin >> health; // Get some user input, and put it into health.
  11.    
  12.     std::cout << "Your health is: " << health << std::endl; // Tell the user their health.
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement