write the program in java to display the fitst ten terms of the following series: 1, 9, 25, 49.
Share
write the program in java to display the fitst ten terms of the following series: 1, 9, 25, 49.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
mark me as brainlit and give a like, dont forget to follow
Explanation:
class series
{
public static void main()
{
int a=1,b=1;
for(int i=1;i<=10;i++,b++)
{
System.out.println(a+", ");
a+=b;
}
}
}