Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int i = 0; i < cs.length; i++)
- {
- if(cs[i] >= 0 && i != 0)
- {
- System.out.print("+ " + cs[i] + "*x^" + i + " ");
- }
- else if(cs[0] >=0)
- {
- System.out.print(cs[i] + "*x^" + i + " ");
- }
- else if(cs[i] < 0)
- {
- System.out.print(cs[i] + "*x^" + i + " ");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement