Computer Science, asked by nilavanpsrpi, 4 months ago

Given that 1+2+3+.. +9 = 45, find the value of (11+12+13+., +19).
Input Format
9
11
12
13
14
15
16
17
18
19
Constraints
Output Format
135​

Answers

Answered by rowdybaby10
2

Answer:

list of numbers which form a pattern is called a sequence. ... (b) 3, 6, 9, 12, 15, . ... (a) 5, 8, 11 , 14, 17, . ... Row 1. 12. 19. 28. 39. 52 q. Row 2. 7. 9. 11. 13 p. The numbers in Row 2 of the ...

Answered by Hansika4871
0

The program for the given question is being answered in C language as there is no language constraint.

#include<stdio.h>

#include<conio.h>

int main()

{

    int a, b, c, arr[100],n,sum;

    printf("enter the number of terms\n");

    scanf("%d",&n);

     printf("enter the array numbers");

     for(a=0;a<n;a++)

     {

            scanf("%d",&arr[a]);

     }

     for(a=0;a<n;a++)

     {

           sum = sum + arr[a];

     }

     printf(sum);

}

Expected input:

9  11 12 13  14 15  16  17  18  19.

Expected output:

135.

Hence, the sum of the series 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 is 135.

Similar questions