Gadget Miracles, Tracfone LG Smartphone Comparison, Android Jelly Bean, Flash tool, Avengers Box, Ulefone, samsung, iphone, Infinix and stock firmware

Jumat, 27 Desember 2013

C# Program to print sum of the factorial of odd series multiply with x where power of x is square of corresponding number

C# Program to print sum of the factorial of odd series multiply with x where power of x is square of corresponding number - I made this blog Gadget Miracles already a few years ago, although I am busy working in my office still build this blog for you who need information about gadgets, has very much information that we provide about the C# Program to print sum of the factorial of odd series multiply with x where power of x is square of corresponding number which you are looking for at this time, please refer to the information we provide in full guarantee because I have collected a lot of information from the source of the richest:

Articles : C# Program to print sum of the factorial of odd series multiply with x where power of x is square of corresponding number
full Link : C# Program to print sum of the factorial of odd series multiply with x where power of x is square of corresponding number
Article Csharp, Article programs,

You can also see our article on:


C# Program to print sum of the factorial of odd series multiply with x where power of x is square of corresponding number

C# Program to print sum of the factorial of odd series multiply with x where power of x is square of corresponding number

Program Statement:
Write a program to display the sum of the following series i.e. sum of the factorial of odd series multiply with x where power of x is square of corresponding number.
X1*1! + X9*3! + X25*5! + X49*7! + X81*9! + . . . + Xn2*n!

Solution:
 class _power
{
long n, f, x, sum = 0;
public long power(long a, long b)
{
long res = 1;
for (int i = 1; i <= b; i++)
res = res * a;
return res;
}
public void cal()
{
Console.WriteLine("\n\t\tSeries X^1*1! + X^9*3 +...+X^n2*n! \n");
Console.Write("\n\t\tEnter value of x : ");
x = Convert.ToInt32(Console.ReadLine());
Console.Write("\n\t\tEnter ending point : ");
n = Convert.ToInt32(Console.ReadLine());
for (int i = 1; i <= n; i++)
{
if (i % 2 != 0)
{
f = 1;
for (int j = i; j >= 1; j--)
f = f * j;
sum = sum + ((power(x, i * i)) * f);
}
}
Console.WriteLine("\n\t\tResult = {0}\n", sum);
}
}




enough already information about C# Program to print sum of the factorial of odd series multiply with x where power of x is square of corresponding number

hopefully the information C# Program to print sum of the factorial of odd series multiply with x where power of x is square of corresponding number can give you answers to all your questions ayang is conveyed to google.

finished already information about C# Program to print sum of the factorial of odd series multiply with x where power of x is square of corresponding number if you mers this information useful for you and want to bookmark or share please use link https://19miracles.blogspot.com/2013/12/c-program-to-print-sum-of-factorial-of.html

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

0 komentar:

Posting Komentar