Computer Science, asked by nishithamallala, 20 days ago

write a program to print the following sum of series

Attachments:

Answers

Answered by suryakantmule93
0

Answer:

#आપणांસ_ઉदंड_आયુષ્યાच्या_

#अનંત_शिवશુभेच्छा..

#आई_तुळजाभवानी_आपणास

#उदंड_आयुष्य_देवो!

गणेशभैया काकडे

Answered by crpiyushbansal
1

Answer:

Explanation:package com.company;

import java.util.Scanner;

public class brainly_problem_2 {

   public static void main(String[] args) {

       Scanner sc= new Scanner(System.in);

       int x,m,n;

       System.out.println("ENTER THE VALUE OF X");

       x= sc.nextInt();

       System.out.println("ENTER THE VALUE OF M");

       m=sc.nextInt();

       System.out.println("ENTER THE VALUE OF N");

       n= sc.nextInt();

       double sum=0;

       for(int i=1; i<=n; i++){

           sum=sum + (double) (x*i)/(m+2*i);

       }

       System.out.println(sum);

   }

}

Similar questions