Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/feed-rss2.php on line 8
‘#wsq12’ Articles at TC101 Fall 2015 https://kenscourses.com/tc101fall2015 Introduction to Programming Python and C++ Thu, 26 Nov 2015 05:46:08 +0000 en hourly 1 https://creativecommons.org/licenses/by/4.0/ WSQ12 – Greatest Common Divisor https://kenscourses.com/tc101fall2015/2015/wsq12-greatest-common-divisor-12/ Thu, 26 Nov 2015 05:46:08 +0000 http://finntec.wordpress.com/?p=117 Here you can find my code for WSQ12:

https://github.com/finntec/wsq12.git

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ12 https://kenscourses.com/tc101fall2015/2015/wsq12-29/ Thu, 26 Nov 2015 03:37:33 +0000 http://giorgio6859.wordpress.com/?p=100 ]]> 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;
x=y;
y=xx%yy;
z=(x%y);
}
return y;}

int main(){
int x,y;
cout<<“Dame el mayor valor “<<endl;
cin>>x;
cout<<“Dame el menor valor “<<endl;
cin>>y;
if(y>x){
cout<<“El primer valor debe ser mayor o igual al segundo “<<endl;
}
else{
cout<<“El máximo común divisor es “<<gcd(x,y)<<endl;
}
return 0;}

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ12 https://kenscourses.com/tc101fall2015/2015/wsq12-28/ Thu, 26 Nov 2015 01:22:12 +0000 http://5nbppkkyj.wordpress.com/?p=151 ]]> This is a program that calculates the greatest common denominator of two positive integers using Euclid’s algorithm.

https://github.com/DianaJU/Write/blob/master/gcd.py

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ12 https://kenscourses.com/tc101fall2015/2015/wsq12-27/ Thu, 26 Nov 2015 01:22:07 +0000 http://ilkapython.wordpress.com/?p=145 WSQ12

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ12 – Greatest Common Divisor https://kenscourses.com/tc101fall2015/2015/wsq12-greatest-common-divisor-11/ Wed, 25 Nov 2015 23:46:10 +0000 http://dragv.wordpress.com/?p=183 ]]> Fairly simple and short.

Here’s the code:

https://github.com/Dragv/wsq12/tree/master

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ12 https://kenscourses.com/tc101fall2015/2015/wsq12-26/ Wed, 25 Nov 2015 23:42:12 +0000 http://alansprogramming.wordpress.com/?p=252 ]]> 12WSQ

I thought fun with numbers was over? “Numbers 7/52” by Janet Ramsden. Link: https://www.flickr.com/photos/ramsd/5445918407/

GitHub code link

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ12 https://kenscourses.com/tc101fall2015/2015/wsq12-25/ Wed, 25 Nov 2015 23:27:45 +0000 http://fernyalanis.wordpress.com/?p=120 https://github.com/FernyAlanis/wsq11-17/blob/master/wsq12

]]>
https://creativecommons.org/licenses/by/4.0/
#WSQ12 https://kenscourses.com/tc101fall2015/2015/wsq12-24/ Wed, 25 Nov 2015 22:25:38 +0000 http://brayangcblog.wordpress.com/?p=143 ]]> 17661958379_c13986b0b6_z

Foto: https://flic.kr/p/sUJ9TM

Estaba fácil y no tuve ningún problema en hacerlo. Aquí esta el link de mi código:

https://github.com/BrayanGc/Codigos/blob/master/GCD.cpp

]]>
https://creativecommons.org/licenses/by/4.0/
#WSQ12 https://kenscourses.com/tc101fall2015/2015/wsq12-22/ Wed, 25 Nov 2015 21:22:11 +0000 http://alan46bc.wordpress.com/?p=73 screen2.png

This one was really easy.

]]>
https://creativecommons.org/licenses/by/4.0/
#WSQ12 GCD https://kenscourses.com/tc101fall2015/2015/wsq12-gcd/ Wed, 25 Nov 2015 05:47:42 +0000 http://eduardomacielm.wordpress.com/?p=186 Continue Reading →]]> This task was quite easy, it was possible to do only reading about Euclid’s algorithm. Even in wikipedia.

It was just taking both numbers and getting its module, then dividing the second number and the module, until the module was 0.

GCD.cpp

]]>
https://creativecommons.org/licenses/by/4.0/