wRITE A PROGRAM TO FIND THE SERIES UPTO 10 TERMS:
2,5,7...........................................................
Answers
Answered by
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
5
#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: ");
#( ˘ ³˘)♥
Similar questions