Skip to content

Commit

Permalink
Add first ex
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-stepien-dev committed Sep 13, 2023
1 parent 49999f7 commit 3f8fd3f
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/PPAD.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions 13.09.23 - Simple Exercises/1.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#include <iostream>

using namespace std;

int main()
{
int human = 0;
int dog;
cout << "Podaj wiek psa\n";
cin >> dog;
for (int i = 0; i < dog; i++) {
if (i == 0) {
human = 15;
} else if (i == 1) {
human += 10;
} else {
human += 5;
}
}
cout << human;
return 0;
}

0 comments on commit 3f8fd3f

Please sign in to comment.