Tech News Today, Marshmallow Custom Rom, Huawei, Run Programs, Network, Chromebook, Bank Account

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# - To all visitors of this blog, I say welcome and thank you for visiting the blog Tech News Today Look for all the things you need that are available on this blog. If not available, please leave suggestions and comments for the development of this blog. now we will discuss first about Program to print sum of factorial of Odd series in C# we have collected a lot of information from sources to create this article, so please see.

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




information Program to print sum of factorial of Odd series in C# has been completed in the discussion.

hopefully the article we give the title Program to print sum of factorial of Odd series in C# can provide knowledge for you in living everyday life in determining the gadget that suits your needs.

you just read the article about Program to print sum of factorial of Odd series in C# if this article is useful for you and want to bookmark it or share it please use the link https://sihanandi.blogspot.com/2013/12/program-to-print-sum-of-factorial-of.html thank you and do not forget to comment if anyone.

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

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

  • C# Main Function for Calling all classes http://sihanandi.blogspot.com /2014/02/c-main-function-for-calling-all-classes.html" rel="nofollow" target="_blank">C# Main Function for Calling all classes void Main_F ...
  • C# Program to Print TrianglesC# Program to Print TrianglesProgram Statement:Write a program to produce the following output:A B C D E F G F E D C B AA B C D E F     F E D C B AA B C D E &n ...
  • C# Program to count total characters entered by usersC# Program to Print Entering Characters from users and then Count Total entering characters Program Statement:Write a program which takes characters from user until ...
  • program to Print Sum of factorial Series in C#C# program to Print Sum of factorial SeriesProgram Statement:Write a program to display the sum of the following series.2/1! + 4/3! + 6/5! + 8/7! + 10/9! + . . . + n/(n- ...
  • Program to Print Armstrong numbers in C#C# Program to Print out all Armstrong numbers between 1 and 500Program Statement:Write a program to print out all Armstrong numbers between 1 and 500. If sum of cubes of ...

0 komentar:

Posting Komentar