Computer Science, asked by kanchanyadav48241, 1 month ago

find the error import java.util.*; // -X+X2-X3+X4
public class sumofseries
{
public static void main(String args[])
{
Scanner in = new Scanner (System.in);
System.out.println("Enter the first number: ");
int a= in.nextInt();
System.out.println("Enter the second number: ");
int b= in.nextInt();
int sum=0;
if(a<=0 || b<=0)
{
System.out.println("Inavalid input ");
}
//System.exit(0);
for(int i=0; i0)
{
System.out.println(" The sum of series is positive : "); } }
}

Answers

Answered by bakrihullisantosh
0

Answer:

According to java convention - The class name of the program Should be in the form Eg-Aaaaa,AaaaAaaa

Similar questions