Computer Science, asked by FGFGY, 10 months ago

wRITE A PROGRAM TO FIND THE SERIES UPTO 10 TERMS:
2,5,7...........................................................

Answers

Answered by Anonymous
2

import java.util.*;

public class Series

{

public static void main(String args)

{

Scanner in=new Scanner(System.in);

int a, i;

for(i=2; i<=19;i=i+2);

{

a=i+i;

System.out.println("display the series"+a);

}

}

Answered by Anonymous
5

&lt;b&gt;&lt;marquee behaviour="alternate"&gt;Hola Mate✌&lt;/marquee&gt;

\boxed{Here\:Is\:Your\:Answer}

#include<stdio.h>

int main() {

int n,i;

int sum=0;

printf("Enter the n i.e. max values of series: ");

scanf("%d",&n);

sum = (n * (n + 1)) / 2;

printf("Sum of the series: ");

#Lipstick Remover ( ˘ ³˘)♥

Similar questions