Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- // this part just means you are including the input/output stream library.
- // you dont have to know what this means for now but make sure to include this
- using namespace std;
- // same with this just include it, you dont have to know what this means
- int main() {
- //int main() is just the main function that will be referred to
- int inputVariable1;
- int inputVariable2;
- // when declaring variables you can name it anything, just remember to start with the type then name
- cin >> inputVariable1;
- cin >> inputVariable2;
- // cin means "character in", it takes in characters up until a blank space in input
- // for example "2 8": 2 will go in inputVariable1 and 8 will go in inputVariable2
- cout << "I can never sleep at home!" << endl;
- cout << "My " << inputVariable1 << " parrots keep singing," << endl;
- cout << "and my " << inputVariable2 << " dogs are always barking!";
- // cout means "character out", which just is what you are outputting
- return 0;
- // you dont need to know what this means but just remember to type it
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement