Skip to content

Commit 22a47d6

Browse files
committed
Added 9A - Die Roll.cpp
1 parent e143880 commit 22a47d6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

9A - Die Roll.cpp

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include<bits/stdc++.h>
2+
using namespace std;
3+
4+
// Code Written By: Vikash Patel
5+
6+
int main()
7+
{
8+
int Y,W;
9+
cin>>Y>>W;
10+
string prob[7] ={"","1/1","5/6","2/3","1/2","1/3","1/6"};
11+
int D=max(Y, W);
12+
cout<<prob[D]<<endl;
13+
}

0 commit comments

Comments
 (0)