#include
#include
#include
void main()
{
textcolor(GREEN);
clrscr();char n1[10],n2[10];
cout<<"enter the name of person throwing dice first & then second\n";
cin>>n1>>n2;
float p1,p2;
p1=1/(6*(1-25/36.0f));
p2=5/(36*(1-25/36.0f));
cout<<"\nthe probability of winning of "<<<" is "<
cout<<"\nthe probability of winning of "<<<" is "<
cout<<"\nthe respective chances of winning is "<
delay(100);
textcolor(RED);
cout<<"\n\n\a";
cprintf("PROGRAM DESIGNED BY:ASHISH KUMAR");
cout<<"\n\n";
cprintf("/ roll 249/06 ");
getch();
}
output:
enter the name of person throwing dice first & then second
a
b
the probability of winning of a is 0.545455
the probability of winning of b is 0.454545
the respective chances of winning is 1.2
No comments:
Post a Comment