how to seperate line output for itemprice>500
import java.util.Scanner; public class itempurchase{ public static void main(String[]args){ Scanner input=new Scanner(System.in); double itemprice; double actualpayment; double discount; System.out.print ("total price of item: "); itemprice=input.nextDouble(); actualpayment=itemprice-(itemprice*0.10); discount=(itemprice*0.10); if (itemprice>500) System.out.println ("discount of item= "+ discount + "actual payment = " + actualpayment ); else System.out.println ("actual payment= " + itemprice); } }