I wnat to implement the NCR=((N!)/((N-R)! R!) where - KingPin's Forum
KPsDenKPsDen ArmoryImage HostingLegendz text RPGIp DisplayIRCFlash Arcade
Forum
      |        
Register
         Natural Gas Treatment & Processing (Posted By:JohnDavid1 - Replies:0 - Views:3)      « »     Nice models and free models, new site! (Posted By:3d4ya - Replies:0 - Views:4)      « »     Giving away my account (Posted By:Headshot - Replies:0 - Views:3)      « »     we have cheap shoes,example :gucci sneaker,air force... (Posted By:jimei - Replies:0 - Views:9)      « »     we have cheap shoes,example :gucci sneaker,air force... (Posted By:jimei - Replies:0 - Views:10)      « »     we have cheap shoes,example :gucci sneaker,air force... (Posted By:jimei - Replies:0 - Views:9)      « »     we have cheap shoes,example :gucci sneaker,air force... (Posted By:jimei - Replies:0 - Views:11)      « »     Lol thx (Posted By:vohrtechs - Replies:16 - Views:165)      « »     Networking not working (Posted By:vohrtechs - Replies:2 - Views:28)      « »     [epic] post you pic thread [/epic] (Posted By:Bionuclear - Replies:263 - Views:6057)      « »     
KingPin's Forum
 
K.P.s.N. Register vbBux / KPs Mall Bugs Blogs FAQ Search Today's Posts Mark Forums Read Donate
Go Back   KingPin's Forum > KP's Network Forum > RSS News
Reload this Page I wnat to implement the NCR=((N!)/((N-R)! R!) where
 


RSS News This is a discussion on I wnat to implement the NCR=((N!)/((N-R)! R!) where in the RSS News;
Description: N and R are very between 2000 to 7000 in java? i want to implement the NCR=((N!)/(N-R)!(R!)) this is required ...

Reply
 
LinkBack Thread Tools
I wnat to implement the NCR=((N!)/((N-R)! R!) where
(#1 (permalink))
Old
Srinivasarao B is Offline
Private
Points: 190, Level: 2 Points: 190, Level: 2 Points: 190, Level: 2
Activity: 0% Activity: 0% Activity: 0%
Srinivasarao B is an unknown quantity at this point
 
Srinivasarao B
Rupees: 80.00
Bank: 500.00
Total Rupees: 580.00
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Dec 2007
I wnat to implement the NCR=((N!)/((N-R)! R!) where - December 13th, 2007

N and R are very between 2000 to 7000 in java? i want to implement the NCR=((N!)/(N-R)!(R!)) this is required in my project in the above expression N and R ranges between the 2000 to 7000 can any body help me.( i want to do this in java language only ) please if any body know this please send me the code.
with regards

 
Reply With Quote
Revenue Shared Ads
(#2 (permalink))
Old
Deepthi is Offline
Private
Points: 196, Level: 2 Points: 196, Level: 2 Points: 196, Level: 2
Activity: 0% Activity: 0% Activity: 0%
Deepthi is an unknown quantity at this point
 
Deepthi
Rupees: 5.50
Bank: 500.00
Total Rupees: 505.50
 
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Dec 2007
December 13th, 2007

I think you know program for factorial right
i am giving example for one implement it using for loop and dynamic variable.

int i=2000,r=500;
float ncr;
int sub=n-r;
int fact=1;
for(int x=1;x<=i;x++)
{
fact=fact*x;
}
int nfact=fact;
for(int x=1;x<=r;x++)
{
fact=fact*x;
}
int rfact=fact;
ncr=nfact/(sub*rfact);

 
Reply With Quote
Revenue Shared Ads
Reply

Bookmarks

Tags
implement, ncrn or nr, wnat

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Rupees Per Thread View: 1.00
Rupees Per Thread: 15.00
Rupees Per Post: 5.00
Forum Jump



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright 2004-2009 KPsN


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81