Techno Aspirations, Apple iPhone, SAMSUNG, Motorola Moto, Secret Codes, price, specifications, Samsung Galaxy, Clone Huawei, Flash File, Google LG Nexus

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

Program to print sum of factorial of Odd series in C# - hello friends are you looking for information related to technology? ... if yes ... then you are right to come to blog Techno Aspirations because here we will display information about the latest gadgets or old ones though, well now we will discuss first about Program to print sum of factorial of Odd series in C# as you are looking for, hopefully the information we will convey can answer your question to google, 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();
}




just so much information about Program to print sum of factorial of Odd series in C#

hopefully the information we provide about Program to print sum of factorial of Odd series in C# can give answer your question to google, and you feel satisfied about this.

you just finished reading the article with the title Program to print sum of factorial of Odd series in C# if you feel this information need to bookmark or share please use link https://faultyaspirations.blogspot.com/2013/12/program-to-print-sum-of-factorial-of.html do not forget there are many other information in this blog, please visit other page.

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. If you’d like to have an article featured on the GreedyGame Blog, please email your ideas/article outlines to bhisham@greedygame.com with a two-sentence bio. Game Write for us

    BalasHapus