Cari Blog Ini

Diberdayakan oleh Blogger.
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 to the blog Software Gadget the end of this much calm product information launcing, yes every day there are always products that are removed from various brands, both physical hardware products and software that need new knowledge to use it, well now we will discuss first about Program to print sum of factorial of Odd series in C# as you search we have collected a lot of data to make this information as complete as possible for you, 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 provide can be useful for you in the set of technology products that fit your daily needs,

have just read the article titled Program to print sum of factorial of Odd series in C# if you feel useful information and you want to bookmark or share please use the link https://ramblingsofker.blogspot.com/2013/12/program-to-print-sum-of-factorial-of.html and do not forget to go back to this blog if you want to know information about the latest gadgets.

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

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

1 komentar:

  1. Your post is very helpful and information is reliable. I am satisfied with your post. Thank you so much for sharing this wonderful post. Visit:- advisor for you office.com/setup | office.com/setup | | Norton.com/setup | office.com/setup | log in Telstra Webmail Account

    BalasHapus