Computer Science, asked by kpbkpb1525gmailcom, 8 months ago

Question 5
Write a menu driven program to find the sum of the following series depending on the
user choosing 1 or 2
1. S=1/4+1/8+1/12.........upto n terms
2. S=1/1!-2/2!+3/3!.......upto n terms
where ! stands for factorial of the number and the factorial value of a number is the
product of all integers from 1 to that number, e.g. 5! = 1 x 2 x 3 x 4 x 5.
(use switch-case).

Answers

Answered by HajmolaAnardana
0

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

\huge\underline{\underline{\bf\red{Question}}}

Simplify { - ( \frac{ \sqrt{2} }{ \sqrt{3} } )}^{5}  \times  ( { \frac{6}{7} })^{2}

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

\huge\underline{\underline{\bf\green{Solution}}}

\implies { - ( \frac{ \sqrt{2} }{ \sqrt{3} } )}^{5}  \times  ( { \frac{6}{7} })^{2}

\implies -  \frac{ {2}^{2}  \times  \sqrt{2} }{ {3}^{2} \times  \sqrt{3}  }  \times  \frac{36}{49}

\implies -  \frac{4 \sqrt{2} }{9 \sqrt{3} }  \times  \frac{36}{39}

\implies -  \frac{4 \sqrt{2} }{ \sqrt{3} }  \times  \frac{4}{49}

\implies -  \frac{16 \sqrt{2} }{49 \sqrt{3} }

\implies -  \frac{16 \sqrt{6} }{147}

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Similar questions