C# program to Print Sum of factorial Series
Program Statement:
Write a program to display the sum of the following series.
2/1! + 4/3! + 6/5! + 8/7! + 10/9! + . . . + n/(n-1)!
Solution:
public class factorial
{
int n;
public void ser()
{
double f, sum = 2, res = 1, up = 2;
Console.WriteLine("\n\t\tSeries = 2/1! + 4/3! + 6/5! + 8/7! + 10/9! + . . . + n/(n-1)!");
Console.WriteLine();
Console.Write("\n\t\tEnter ending point : ");
n = Convert.ToInt16(Console.ReadLine());
for (int i = 2; i <= n; i++)
{
if (i % 2 == 1)
{
f = 1;
for (int x = i; x > 0; x--)
{ f = f * x; }
up = up + 2;
res = up / f;
sum = sum + res;
}
}
Console.WriteLine("\n\t\tSum : {0}\n", sum);
Console.WriteLine();
}
}
Printer Support
BalasHapushp printer customer care number
samsung printer support number
Epson Printer Support Number
Canon Printer Support Number
Brothers Printer Support Number
Best Digital Marketing Company in India
This is a great post. I like this topic.This site has lots of advantage.I found many interesting things from this site. It helps me in many ways.Thanks for posting this again.
BalasHapusaol email technical support number
att email customer support number
roadrunner email support
Yahoo email support number
"It was an informative post indeed. Now It's the time to make the switch to solar power,
BalasHapuscontact us(National Solar Company) today to learn more about how solar power works.
solar panels
solar inverter
solar batteries
solar panels adelaide
best solar panels
solar power
battery storage solar
battery charger solar
solar regulators
solar charge controllers
solar battery storage
instyle solar
solar panels melbourne
solar panels for sale
solar battery charger
solar panels cost
buy solar panels"
"Bruce Caplan is a Licensed Insolvency Trustee with over 25 years of experience helping people and companies
BalasHapussolve their debt problems.
Winnipeg Consumer Proposal
Consumer Proposal Winnipeg
Bankruptcy Winnipeg
Insolvency Winnipeg
Winnipeg Bankruptcy
consumer proposal
Winnipeg Insolvency
Winnipeg Insolvency Trustee
Insolvency Trustee Winnipeg
Bankruptcy
Winnipeg Debt Consolidation
Credit Counselling Winnipeg
Debt Consolidation Winnipeg
Debt Consolidation loan"
You don’t want your neighbors or bosses to find out what you’re ordering Unlike liquid synthetic urine, however, there's a lot more complicated creating and mixing required to prep powdered products It is used in cases when a person is being tested for long-term drug use This can happen when the control line fails to appear So, it is not a complicated device Furthermore, apple cider vinegar is often suggested to detangle and add shine to your hair When it is shipped it remains intact since it does not leak The results are usually extremely accurate and the detection window can last for up to 90 days after consumption All you need to do on the website is enter your name and email address and the specific drugs you’ve used in the last 90 days and the information will be sent to you This detox drink is supported with the help of a Detoxify PreCleanse Herbal Supplement We don’t recommend you use this system on its own, but it does pair well with other detoxifiers You can also wear a shower cap, be careful with the Clean and Clear Astringent as this is the strongest chemical you will use during this process. (After 30 minutes of the Clean and Clear Sitting on your head) Take a very small dab of Liquid Tide and scrub the hair follicle for 3 to 7 minutes. Rub the Tide with your fingers and you should feel like the tide is an abrasive rubbing against the hair. Try not to make it very foamy or sudsy then rinse off the tide detergent well. Apply Nexxus Aloe Rid and rinse off.
BalasHapus