King Gadget, Nokia, Sony Xperia Z, Speaker Audio Sound, Latest Update Flash File, USB Not charging problem

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# - welcome friends, how are you today? ... hopefully healthy ... starting today blog King Gadget will discuss trus information about the latest gadgets and old ones, ok now we will discuss first Program to print sum of factorial of Odd series in C# this information we collect from various reliable sources so that you will get complete and correct information, please read.

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();
}




so much information 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 convey could be useful for you in searching the latest gadget information on google

you just read the article with title Program to print sum of factorial of Odd series in C# you can bookmark for easy return visit or you can also share so this article can be more useful for many people by using link https://shwesetharrking.blogspot.com/2013/12/program-to-print-sum-of-factorial-of.html umpteen and 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