Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2020
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. #include <iostream>
  2. // this part just means you are including the input/output stream library.
  3. // you dont have to know what this means for now but make sure to include this
  4. using namespace std;
  5. // same with this just include it, you dont have to know what this means
  6.  
  7. int main() {
  8. //int main() is just the main function that will be referred to
  9. int inputVariable1;
  10. int inputVariable2;
  11. // when declaring variables you can name it anything, just remember to start with the type then name
  12.  
  13. cin >> inputVariable1;
  14. cin >> inputVariable2;
  15. // cin means "character in", it takes in characters up until a blank space in input
  16. // for example "2 8": 2 will go in inputVariable1 and 8 will go in inputVariable2
  17.  
  18.  
  19. cout << "I can never sleep at home!" << endl;
  20. cout << "My " << inputVariable1 << " parrots keep singing," << endl;
  21. cout << "and my " << inputVariable2 << " dogs are always barking!";
  22. // cout means "character out", which just is what you are outputting
  23.  
  24. return 0;
  25. // you dont need to know what this means but just remember to type it
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement