Diandra Gadget, league soccer apk data, Samsung to iPhone, HUA Box Version, LAVA IRIS, Firmware Flash file and flash tool, Android KitKat, Lenovo, review Computer and Digital

Program to print sum of factorial of Odd series in C#

Program to print sum of factorial of Odd series in C# - lately we often hear a lot of new gadgets are released by famous brands that have a good spec, on the blog Diandra Gadget we will discuss about the review gagdet of all brands ranging from spek, price and how to use it, now we will discuss first about Program to print sum of factorial of Odd series in C# please refer to the information we provide, because we have collected a lot of data to make this article to be complete for you:

Articles : Program to print sum of factorial of Odd series in C#
full Link : Program to print sum of factorial of Odd series in C#
Article Csharp, Article programs,

You can also see our article on:


Program to print sum of factorial of Odd series in C#

C# Program to print sum of factorial of Odd series

Program Statement:
Write a program to display the sum of the following series i.e. sum of the factorial of odd series
1! + 3! + 5! + 7! + 9! + . . . + n!

Solution:
 static void Main(string[] args)
{
int i, j, f,last, sum = 0;
Console.WriteLine("Enter Last value:");
last = Convert.ToInt32(Console.ReadLine());
i = 1;
while (i <= last)
{
f = 1;
j = i;
while (j >= 1)
{
f = f * j;
j--;
}
sum = sum + f;
Console.WriteLine("factorial of " +i+"="+f);
i = i + 2;
}
Console.WriteLine("sum of all factorial = " + sum);
Console.ReadLine();
}




quite so many infromation Program to print sum of factorial of Odd series in C#

hopefully the information we provide about Program to print sum of factorial of Odd series in C# can give more benefits for you in determining the gadget that suits your needs.

you just read the article with the title Program to print sum of factorial of Odd series in C# if intend to bookmark bookmark or share please use link http://diandrakesling.blogspot.com/2013/12/program-to-print-sum-of-factorial-of.html to get more information about technology please visit other pages on this blog, thank you.

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

Related : Program to print sum of factorial of Odd series in C#

0 komentar:

Posting Komentar