Members BookmarksPolls Fresher Jobs Funny Photos B.Tech Projects New Member FAQ  



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

Advertisements


website counter




C++ Program for probability- 6


Posted Date: 23 Mar 2008    Resource Type: Articles/Knowledge Sharing    Category: Computer & Technology

Posted By: ashish singh       Member Level: Diamond
Rating:     Points: 2



//program no.6 (probability)

#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 "<cout<<"\nthe probability of winning of "<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





Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: C++ Program no. probability-5
Previous Resource: C++ Program no. probability-7
Return to Discussion Resource Index
Post New Resource
Category: Computer & Technology


Post resources and earn money!
 
Related Resources


Contact Us    Privacy Policy    Terms Of Use   

SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.