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 of Odd series in C#

Program to print sum of factorial of Odd 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 of Odd 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 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();
}




enough already articles Program to print sum of factorial of Odd series in C#

hopefully the information Program to print sum of factorial of Odd 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 of Odd 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-of.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 of Odd series in C#

2 komentar: