diff --git a/gourav bhati/12may/ques1(12may).png b/gourav bhati/12may/ques1(12may).png new file mode 100644 index 0000000..21bf55c Binary files /dev/null and b/gourav bhati/12may/ques1(12may).png differ diff --git a/gourav bhati/12may/ques1(12may).py b/gourav bhati/12may/ques1(12may).py new file mode 100644 index 0000000..cafc201 --- /dev/null +++ b/gourav bhati/12may/ques1(12may).py @@ -0,0 +1,19 @@ +def gcd(b,c): + if(c==0): + return b + return gcd(c,b%c) + +def di(a,b,c): + lcm=b*c/gcd(b,c) + return a//lcm + +a=int(input("enter a number: ")) +b=int(input("enter a number: ")) +c=int(input("enter a number: ")) + +print(di(a,b,c)) + + + + + diff --git a/gourav bhati/12may/ques2(12may).png b/gourav bhati/12may/ques2(12may).png new file mode 100644 index 0000000..1973a49 Binary files /dev/null and b/gourav bhati/12may/ques2(12may).png differ diff --git a/gourav bhati/12may/ques2(12may).py b/gourav bhati/12may/ques2(12may).py new file mode 100644 index 0000000..c9f6433 --- /dev/null +++ b/gourav bhati/12may/ques2(12may).py @@ -0,0 +1,10 @@ +def gcd(a,b): + if a==b: + return a + else: + return"1" + +a=int(input("enter a number: ")) +b=int(input("enter a number: ")) + +print(gcd(a,b)) \ No newline at end of file