Forum
Resources
Mentors
Projects
Entrance Exams
Question Papers
Colleges
Courses
Universities
Schools
Make Money
Members
Bookmarks
Polls
Fresher Jobs
Funny Photos
B.Tech Projects
New Member FAQ
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
Sree....
(241)
VIRUTHAGIRI
(211)
ch naga ...
(201)
Last 7 Days
Nemish
(2392)
prashanth beer...
(2134)
ram
(1920)
more...
Awards & Gifts
Online Exams
Aptitude Questions
General Aptitude Tests
Medical Entrance
Engineering Entrance
Bank Tests
TOEFL & IELTS Questions
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
Watch Asianet TV online
Kairali TV in Internet
Surya TV online
Amritha TV Channel
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
Sign In
(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
HTML Tag List
C Program -Program for Rename command
An Alternate search engine: replica of Google.
C Program -odd loop using a for loop
C Program -Pointer notation to access 2-D array elements
Contact Us
Privacy Policy
Terms Of Use
SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.