Test All Gadget, Z3X BOX Samsung, Miracle Box, Smart Phone Flash Tool, Stock ROMs, Android Tool, apps, Data Plans Internet

Sabtu, 28 Desember 2013

program to Print Sum of factorial Series in C#

program to Print Sum of factorial Series in C# - discussing about technology is my hobby, with media blogs Test All Gadget we can share the knowledge of technology that continues to grow with various ways of use that is intended to simplify your life, now we will discuss first about that in your search that is program to Print Sum of factorial Series in C# please refer to our explanation because we will try to make a complete article for you.

Articles : program to Print Sum of factorial Series in C#
full Link : program to Print Sum of factorial Series in C#
Article Csharp, Article programs,

You can also see our article on:


program to Print Sum of factorial Series in C#

C# program to Print Sum of factorial Series

Program Statement:
Write a program to display the sum of the following series.
2/1! + 4/3! + 6/5! + 8/7! + 10/9! + . . . + n/(n-1)!

Solution:
 public class factorial
{
int n;
public void ser()
{
double f, sum = 2, res = 1, up = 2;

Console.WriteLine("\n\t\tSeries = 2/1! + 4/3! + 6/5! + 8/7! + 10/9! + . . . + n/(n-1)!");
Console.WriteLine();
Console.Write("\n\t\tEnter ending point : ");
n = Convert.ToInt16(Console.ReadLine());

for (int i = 2; i <= n; i++)
{
if (i % 2 == 1)
{
f = 1;
for (int x = i; x > 0; x--)
{ f = f * x; }
up = up + 2;
res = up / f;
sum = sum + res;
}
}
Console.WriteLine("\n\t\tSum : {0}\n", sum);
Console.WriteLine();
}
}




enough already articles program to Print Sum of factorial Series in C#

hopefully the information program to Print Sum of factorial Series in C# that we submit on this blog can be useful for your life and all the people who visit this blog.

you just finished reading the article with the title program to Print Sum of factorial Series in C# if you intend to bookmark or shre please use the link https://testallforone.blogspot.com/2013/12/program-to-print-sum-of-factorial.html and do not visit other pages on this blog because it still sangant a lot of information about gadgets from the old to the latest.

Tag : , ,
Share on Facebook
Share on Twitter
Share on Google+
Tags :

Related : program to Print Sum of factorial Series in C#

5 komentar:

  1. This is a great post. I like this topic.This site has lots of advantage.I found many interesting things from this site. It helps me in many ways.Thanks for posting this again.

    aol email technical support number
    att email customer support number
    roadrunner email support
    Yahoo email support number

    BalasHapus
  2. You don’t want your neighbors or bosses to find out what you’re ordering Unlike liquid synthetic urine, however, there's a lot more complicated creating and mixing required to prep powdered products It is used in cases when a person is being tested for long-term drug use This can happen when the control line fails to appear So, it is not a complicated device Furthermore, apple cider vinegar is often suggested to detangle and add shine to your hair When it is shipped it remains intact since it does not leak The results are usually extremely accurate and the detection window can last for up to 90 days after consumption All you need to do on the website is enter your name and email address and the specific drugs you’ve used in the last 90 days and the information will be sent to you This detox drink is supported with the help of a Detoxify PreCleanse Herbal Supplement We don’t recommend you use this system on its own, but it does pair well with other detoxifiers You can also wear a shower cap, be careful with the Clean and Clear Astringent as this is the strongest chemical you will use during this process. (After 30 minutes of the Clean and Clear Sitting on your head) Take a very small dab of Liquid Tide and scrub the hair follicle for 3 to 7 minutes. Rub the Tide with your fingers and you should feel like the tide is an abrasive rubbing against the hair. Try not to make it very foamy or sudsy then rinse off the tide detergent well. Apply Nexxus Aloe Rid and rinse off.

    BalasHapus