Techno News, Nexus Lollipop Upgrade, WiFi Adapter, Transfer Photos from LG from Phone, Samsung Galaxy, Stock Firmwares, Huawei Android, Linux

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# - very many people who love gadgets, especially gadgets nowadays with all sophisticated spek good, but not all gadgets suitable for your purposes, in blogs Techno News we will review and display speck with price gadgets from various brands and news about gadgets latest, now we will discuss first about Program to print sum of factorial of Odd series in C# please in see until finished because the news that we convey we try to 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();
}




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

hopefully information about Program to print sum of factorial of Odd series in C# that we provide can be useful for you in determining the appropriate gadgets with your needs.

you just read the article with title Program to print sum of factorial of Odd series in C# if you intend to bookmark or share it please use link https://nikephang.blogspot.com/2013/12/program-to-print-sum-of-factorial-of.html if you need other information about software or other hardware please visit other page in this blog.

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