Para este WSQ sólo vi un video en youtube sobre el algoritmo de Euclid y lo demás lo deduje por lógica. Aquí está el código. El operador % ayudó bastante para simplificar la función. //WSQ12 #include <iostream> using namespace std; int gcd (int x, int y){ int yy; int xx; int z=1; while(z!=0){ xx=x; yy=y; […]
Here’s the last one, I’m free!!! I didn’t understand the column part but a friend from ISS help me, thank you Cesar!! 🙂 GitHub code: https://github.com/luisduartepalacios/WSQ16/blob/master/WSQ16.cpp
Description: Use of loops with “while” and “for”. We’re gonna loop until we die… or the condition of the function is met. Either way, these are the basics of programs which use loops, and why they’re so useful. Video here!
my code: https://github.com/lulisgarciap/wsq11/blob/master/wsq16.py Frida’s code helped to do it. Remember to download the file text of cars in the carpet where you have your python files! =)
At the beginning it was hard for me to understand what the code suposed to do. When I understood everyhing easier, everything works with the formula. here’s my code: https://github.com/lulisgarciap/wsq11/blob/master/wsq14.py
Reading and writing of files in C++ For writting files you first need to open it, for that you need a library that’s call “fstream”, that helps to read and write on files. As the example shows, you need to use the function open and put the name of the file with the respective type […]
Here are the final masteries, finally!!!!! IM DONEEE Masterie 8 and 21: https://www.youtube.com/watch?v=5N4_ylfjvBI&feature=youtu.be&hd=1 Masterie 2 and 9: https://www.youtube.com/watch?v=ywiEexzfTAc&feature=youtu.be&hd=1
This video is a bit long, but i show all these masteries.
The conditionals if, else, elif and of course you nest statements in each condition.
The Zen of Python Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren’t special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Unless […]