Binomial algorithm using C# .net
Features of C# .net binomial algorithm windows application
An integer number P is to be given as an input to the application by the user. The following algorithmic steps are followed to get the required output.
- The initial number given as input by the user is taken as Po or P.
- The next step is finding the value of Pn given by the formula Pn = Pn-1 – (8*n) where n is the natural number starting from 1.
- The third step is finding the value of the formula Pn/(2n+1).
- The steps 2 and 3 are continued till the resultant of the third step turns out to be an Integer value.
The Final output of the application is the Integer value and the value of n for which the Integer value is obtained.
Click for more projects under DotNet C Sharp category