write a java program to find the sum of following series :
Answers
Answered by
2
Answer:
import java.lang.Math;
public class Main
{
public static void main(String[] args) {
int x = 5;
for(int i = 1; i <= x; i++){
System.out.println(Math.pow(x , i) - Math.pow(x , (i+1)));
}
}
}
Explanation:
Similar questions
Social Sciences,
2 days ago
Business Studies,
2 days ago
English,
3 days ago
Hindi,
3 days ago
Science,
8 months ago
Math,
8 months ago