Computer Science, asked by omodilu, 1 day ago

Write a program in Java to display the series: 1 – 2/3 + 4/5-6/7 unto nth term​

Answers

Answered by sajinadarajan03
0

Answer:

public class Demo

public static void main(String args[])

 

for(int i = 1; i < 8; i++)  

System.out.print((int)Math.pow(2, i)+" ");  

Explanation:

thank u

Similar questions