is my program correct syntax wise... Please help fast
Attachments:

Answers
Answered by
0
no little different at last 5 line... (ignore my grammatical mistake because I have ignored that in your question also) hope it helps plzz... comment on it, follow me if you wish or mark it brainlest if you want free 3 points....
sam947:
I don't really see your argument... ignore my grammatical mistakes cause you have ignored mine... + I can't even understand your answer... mind if you elaborate a bit
Answered by
3
I recommend using an object in the main method.
So new syntax would be
public static void main(String args[])
{
program obj=new program();
double x=obj.series(5.0);
double y=obj.series(4.0,7.0);
System.out.print(x);
System.out.print(y);
}
So new syntax would be
public static void main(String args[])
{
program obj=new program();
double x=obj.series(5.0);
double y=obj.series(4.0,7.0);
System.out.print(x);
System.out.print(y);
}
Similar questions