all about smartphone technologies we discuss here, ranging from specifications and prices, how to fix hp and we provide a lot of applications and games

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

Program to print sum of factorial of Odd series in C# - welcome to our blog that presents a very complete information is Tech Phone ok now we will discuss the information you are seeking, may I guess if you are looking for information on Program to print sum of factorial of Odd series in C# if properly come please continue reading until the end, we also provide other information, do not forget to get around:

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




Articles Program to print sum of factorial of Odd series in C# already been discussed

A few information about the Program to print sum of factorial of Odd series in C#, hopefully can provide benefits to all of you.

You're reading an article Program to print sum of factorial of Odd series in C# and this article has a link to https://mastispotgroup.blogspot.com/2013/12/program-to-print-sum-of-factorial-of.html to revel book mark. Hopefully this article could be useful, do not forget to look for information on obtaining the phone tech blog.

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

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

  • C# Program to find Area of TriangleC# Program to find Area of TriangleProgram Statement:If the lengths of the sides of a triangle are denoted by a, b, and c, then area of triangle is given byArea = SS(S- ...
  • 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- ...
  • C# Program to print Rectangle $C# Program to print Rectangle $Program Statement:Write a program using for loop which prints the following output on the screen.$$$$$$$$$$$$         ...
  • C# Program to find Student GPA and CGPA || Concept of ENUM in C#C# Program to find Student GPA and CGPAProgram Statement:Create a class of student which stores characteristcs of student like studentID, studentName, studentDOB, studen ...
  • 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