Technology News, Micromax, Mobiles Flashing Software, Flash Tool, Pokemon GO Apk, Income Online, Moto G4 Plus, Sony PC, Latest Version, samsung note, Huawei Smartphone

Friday, December 27, 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 - technology is getting more advanced every day .. if you want to know the progress that happened please visit this blog Technology News because it will always update the latest information, 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 hopefully this information can answer the questions you submit to google, ok please see:

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




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 has been completed in the discussion

hopefully 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 benefit you in getting the latest information about technology,

you just read the article entitled C# Program to print sum of the factorial of odd series multiply with x where power of x is square of corresponding number if the article feel useful for you please bookmark or share by using link https://micromyaw.blogspot.com/2013/12/c-program-to-print-sum-of-factorial-of.html and thank you.

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

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

  • C# Main Function for Calling all classes http://micromyaw.blogspot.com /2014/02/c-main-function-for-calling-all-classes.html" rel="nofollow" target="_blank">C# Main Function for Calling all classes void Main_F ...
  • C# Program to Print Triangle in Square C# Program to Print Triangle in SquareProgram Statement:Write a program which display the following output on the screen.####$#######$#$#####$###$###$#####$#$#######$Sol ...
  • C# Program using Functions and loopsC# Program using FunctionsProgram Statement:Write a function which takes one value as parameter and display the sum of digits in the value. e.g. if user has passed 125 t ...
  • C# Program to Print Fibonacci seriesC# Program to Print Fibonacci seriesProgram Statement:Write a program which prints the Fibonacci series using loop.1 1 2 3 5 8 13 21 34 …Solution: public class _fib { ...
  • C# Program to count total characters entered by usersC# Program to Print Entering Characters from users and then Count Total entering characters Program Statement:Write a program which takes characters from user until ...

0 comments:

Post a Comment