English, asked by vamsib9920, 5 months ago

Write a program to Print the series & its sum 25, 30 ...95

Answers

Answered by sushilabisht2006
0

import Java. util.*;

class Series

{

void main()

{

Scanner sc=new Scanner (System. in);

into s=0;

for (int i=25; i<=95;i=i+5)

{

System.out.println(i);

s=s+i;

System. out. println("sum is"+s);

}

}

}

Similar questions