write a program to compute and display the following series S=x/1-x/2+x/3-x/4+x/5.......................x/12
Attachments:
Answers
Answered by
3
-x/6+x/7-x/8+x/9-x/10+x/11-
abhinav222:
what is this
Answered by
5
Input By Scanner Method...
import java.util.scanner;
public class abc
{
public static void main ( )
{
Scanner sc = new Scanner ( System.in )
double a;
a = sc.nextDouble( );
System.out.println ( a );
}
}
Hope it helps✌️✌️
Please mark as Brainliest
import java.util.scanner;
public class abc
{
public static void main ( )
{
Scanner sc = new Scanner ( System.in )
double a;
a = sc.nextDouble( );
System.out.println ( a );
}
}
Hope it helps✌️✌️
Please mark as Brainliest
Similar questions