C# Program to print sum of the factorial of odd series multiply with x where power of x is square of corresponding number - with the rapid development of today's technology we must enrich our knowledge of gadgets, because every day there are many new gadgets that are made with advantages, in blogs
Stephanie News we will meriview many gadgets from various brands ranging from the specification and its price .. 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 please see our explanation to finish:
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);
}
}
we 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's all.
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 that we have conveyed can provide benefits for you and all visitors of this blog, if any criticism and suggestions please comment.
you just read C# Program to print sum of the factorial of odd series multiply with x where power of x is square of corresponding number if this article is considered useful and you want to bookmark and share it please use the link https://stephaniefulke.blogspot.com/2013/12/c-program-to-print-sum-of-factorial-of.html and what if you want other information look for another page in this blog.
Tag :
Csharp,
programs,
BalasHapuspug puppies for sale,pug puppies for sale near me
teacup pugs for sale,teacup pugs,teacup pug puppies for sale,teacup pug for sale near me,pug for sale near me,pug puppies for sale under,teacup pugs,pug puppies near me,teacup pugs,teacup pug puppies for sale,pug puppy for sale,mini pug,baby pugs for sale,pug breeders near me,pugs puppies for sale,black pug puppies for sale,miniature pug,pug puppies,pugs for sale near me,pugs for sale near me,pugs puppies,teacup pug puppies for sale,pugs for sale,baby pugs for sale
Pug pupies for sale
pug puppies for sale near me
pug puppy for sale near me
teacup puppies for sale near me
Pug puppies for sale
pugs for sale
french bulldog puppies for sale
French Bulldog Puppy for sale near me