Skip to content
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
6 changes: 5 additions & 1 deletion C++/02_cppBeginners.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ int main()
{

cout << "hello world";
cout<<"how are you?";
int a,b;
cin>>a>>b;
cout<<a<<"\n"<<b<<"\n";
return 0;
}
}
6 changes: 4 additions & 2 deletions C++/03_cppBeginners.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ using namespace std;
int main()
{

cout << "text";
cout << "Text";
cout<<"\nWrite something which impresses the whole world\n";
cout<<"The world needs awesome writers and their super awesome writings."<<endl;
return 0;
}
}
14 changes: 11 additions & 3 deletions C++/07_cppBeginners.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,19 @@ int main()


int calculation3 = (4 + 3) * 7; // calculation2 = 49



int calculation4 = 2 + 6 * 3; // It gives us 2 + ( 6 * 3)= 20


int calculation5 = (2 + 6) * 3;// calculaton5 = 24


cout << "calculation1: " << calculation1 << endl;
cout << "calculation2: " << calculation2 << endl;
cout << "calculation3: " << calculation3 << endl;


cout << "calculation4: " << calculation4 << endl;
cout << "calculation5: " << calculation5 << endl;

return 0;
}
8 changes: 7 additions & 1 deletion Python/02_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,10 @@
25
>>> bacon = 18
>>> bacon / tuna
3.6
3.6
>>> 4 * 20
80
>>> 5 + 7
12
>>> 6 * 2
12