Skip to content

Create initials.cpp #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions dog_years.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include <iostream>

int main() {
// variable of my dogs age
int dog_age = 12;
// dogs first two years is equal to 21 human years
int early_years = 21;
// following years count as 4 human years
int later_years = (dog_age - 2) * 4;
// dogs total human years is early years plus later_years
int human_years = early_years + later_years;
// can also be written in one line below
// int early_years, later_years, human_years;
std::cout << "MY name is Courage! Ruff ruff, I am " << human_years << " years old in human years.\n";
}
22 changes: 22 additions & 0 deletions initials.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// comment with fun fact here

#include <iostream>

int main() {
// program here
std::cout << "mm mm\n";
std::cout << "m m m m\n";
std::cout << "m m m m\n";
std::cout << "m m m m\n";
std::cout << "m m\n";

std::cout << "mmmmmmmmmm\n";
std::cout << "m m\n";
std::cout << "mmmmmmmmmmmmm\n";
std::cout << "m m\n";
std::cout << "m m\n";
// std::cout "m\n";
// std::cout "m\n";
// std::cout "m\n";
// std::cout "m\n";
}