Skip to content

Commit 74d5d1b

Browse files
committed
Added 732A - Buy a Shovel.cpp
1 parent 878a344 commit 74d5d1b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

732A - Buy a Shovel.cpp

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#include<bits/stdc++.h>
2+
using namespace std;
3+
4+
// Code Written By: Vikash Patel
5+
6+
int main()
7+
{
8+
int k,r;
9+
cin>>k>>r;
10+
int n=1;
11+
while(true)
12+
{
13+
if((n*k)%10==0)
14+
break;
15+
else if((n*k)%10==r)
16+
break;
17+
else
18+
n++;
19+
}
20+
cout<<n<<endl;
21+
}
22+
23+
24+
25+
26+
27+
28+
29+

0 commit comments

Comments
 (0)