이재용

GCD file added

Showing 1 changed file with 49 additions and 0 deletions
1 +{
2 + "cells": [
3 + {
4 + "cell_type": "code",
5 + "execution_count": 1,
6 + "metadata": {},
7 + "outputs": [
8 + {
9 + "name": "stdout",
10 + "output_type": "stream",
11 + "text": [
12 + "50\n"
13 + ]
14 + }
15 + ],
16 + "source": [
17 + "def GCD(num1,num2):\n",
18 + " if num2 ==0:\n",
19 + " return num1\n",
20 + " return GCD(num2,num1%num2)\n",
21 + "\n",
22 + "print(GCD(50,100))\n",
23 + " \n",
24 + " "
25 + ]
26 + }
27 + ],
28 + "metadata": {
29 + "kernelspec": {
30 + "display_name": "Python 3",
31 + "language": "python",
32 + "name": "python3"
33 + },
34 + "language_info": {
35 + "codemirror_mode": {
36 + "name": "ipython",
37 + "version": 3
38 + },
39 + "file_extension": ".py",
40 + "mimetype": "text/x-python",
41 + "name": "python",
42 + "nbconvert_exporter": "python",
43 + "pygments_lexer": "ipython3",
44 + "version": "3.7.3"
45 + }
46 + },
47 + "nbformat": 4,
48 + "nbformat_minor": 2
49 +}