Tecno Android Phones, Samsung Imei Repair, Huawei Mediapad, Official Firmware/ Flash File, WiFi, Alcatel One, Flash Tool Windows, Android Jelly Bean

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 - we say welcome to the blog Tecno Android Phones we provide a lot of latest gadget information that must be very dear for you to miss, now we will discuss first about C# Program to print sum of the factorial of odd series multiply with x where power of x is square of corresponding number we have collected a lot of information to make this article to complete for you, Please read:

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




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

We think it is enough 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 we give can give benefit for you,

If you feel 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 that we provide can provide benefits for others please share with link https://southernmatron.blogspot.com/2013/12/c-program-to-print-sum-of-factorial-of.html thank you for visiting our blog page and do not forget to visit other pages.

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

0 komentar:

Post a Comment