Started playing with C++ in vscode
This commit is contained in:
parent
6829b0457a
commit
85f88496cc
6
cpp/vscode/helloworld.cpp
Normal file
6
cpp/vscode/helloworld.cpp
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
std::cout << "Hello World!" << std::endl;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
4
python/lp3thw/Exercise05/ex5.py
Normal file → Executable file
4
python/lp3thw/Exercise05/ex5.py
Normal file → Executable file
@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
myName = "Ganome"
|
myName = "Ganome"
|
||||||
myAge = 35
|
myAge = 35
|
||||||
myHeight = 72
|
myHeight = 72
|
||||||
@ -15,4 +17,4 @@ print(f"His teeth are usuallyy {myTeeth} depending on the coffee.")
|
|||||||
|
|
||||||
#tricky line
|
#tricky line
|
||||||
total = myAge + myHeight + myWeight
|
total = myAge + myHeight + myWeight
|
||||||
print(f"If i add {myAge}, {myHeight}, and {myWeight} I get {total}.")
|
print(f"If i add {myAge}, {myHeight}, and {myWeight} I get {total}.")
|
||||||
|
|||||||
3
python/lp3thw/Exercise10/ex10.py
Normal file → Executable file
3
python/lp3thw/Exercise10/ex10.py
Normal file → Executable file
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
tabbyCat = "\tI'm Tabbed in."
|
tabbyCat = "\tI'm Tabbed in."
|
||||||
persianCat = "I'm Split\non a line."
|
persianCat = "I'm Split\non a line."
|
||||||
backslashCat = "I'm \\ a \\ cat."
|
backslashCat = "I'm \\ a \\ cat."
|
||||||
@ -12,4 +13,4 @@ I'll do a list:
|
|||||||
print(tabbyCat)
|
print(tabbyCat)
|
||||||
print(persianCat)
|
print(persianCat)
|
||||||
print(backslashCat)
|
print(backslashCat)
|
||||||
print(fatCat)
|
print(fatCat)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user