Community Sites
Create your own community website and start earning today !
It's Free !
Forum
Resources
Mentors
Projects
Entrance Exams
Question Papers
Colleges
Courses
Universities
Schools
Make Money
Communities
Members
Bookmarks
Polls
Fresher Jobs
Funny Photos
B.Tech Projects
New Member FAQ
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
Girish Patil
(357)
Manjunath
(241)
Senthil Kumar
(170)
Last 7 Days
Girish Patil
(1701)
Senthil Kumar
(1165)
palvir sarao
(1164)
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.
C++ Program for probability- 2
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. 2 (probability)
#include
#include
#include
#include
void main()
{
int tc,ace,dc;
textcolor(BROWN);
clrscr();
cout<<"\aenter total no. of cards : ";
cin>>tc;
cout<<"\aenter the no. of aces : ";
cin>>ace;
cout<<"\aenter the no. of aces drawn : ";
cin>>dc;
float prob=nCr(ace,dc)/nCr(tc,dc);
cout<<"the probability of drawing "<
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 total no. of cards : 52
enter the no. of aces : 4
enter the no. of aces drawn : 2
the probability of drawing 2 aces in a pack of 52 is 0.004525
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 for probability 1
Previous Resource:
C++ Program no. probability-3
Return to Discussion Resource Index
Post New Resource
Category:
Computer & Technology
Post resources and
earn money
!
Related Resources
Things to do to keep your IT job from takin over your Life
C QUESTIONS ON ORDER OF EVALUATION(SECTION 3)
Google Chrome
Different Ways to Connect to the Internet
Create Table without using mouse and menus
Watch TV Channels
Watch Asianet TV online
Kairali TV in Internet
Surya TV online
Amritha TV Channel
Contact Us
Privacy Policy
Terms Of Use
SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.