Computer Science, asked by sohamtribedi548, 6 months ago

Write a Java Program to find the sum of the given series:- S=(1*2)+(2*3)......+(19*20)​

Answers

Answered by intelligent12394
5

Explanation:

  • public static void main(String[] args) {
  • Scanner scn=new Scanner(System.in);
  • int n=scn.nextInt(), sum=0;
  • for(int i=1; i<=n; i++) sum+=fact(i);
  • System.out.println(sum);
  • }

please mark as brainlist answer.

Answered by suyashpandey959
2

Answer:

Here's your answer

mark me as brainliest

like

Attachments:
Similar questions