Write a program in Java to display the series: 1 – 2/3 + 4/5-6/7 unto nth term
Answers
Answered by
363
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:
Hope it will helps you
Similar questions