diff --git a/12_May/q1.py b/12_May/q1.py new file mode 100644 index 0000000..32d1bfa --- /dev/null +++ b/12_May/q1.py @@ -0,0 +1,22 @@ +a=int(input('Enter value of A : ')) +b=int(input('Enter value of B : ')) +c=int(input('Enter value of C : ')) + +sp=0 + +if(b>c): + g=b +else: + g=c + +while(True): + if((g%b==0) and (g%c==0)): + lcm=g + break + g+=1 + +for i in range(lcm,a+1): + if(i%lcm==0): + sp=sp+1 + +print('Number of special numbers are : ',sp) \ No newline at end of file diff --git a/12_May/q1_out.jpg b/12_May/q1_out.jpg new file mode 100644 index 0000000..a3a6efb Binary files /dev/null and b/12_May/q1_out.jpg differ