2
Reply

How do I get certain code to onto the next line

Rivash Krishoondutt

Rivash Krishoondutt

Mar 9 2014 6:15 AM
872
Hi Guys
 
this is my code below in my class, for display purposes I need" ingred" to be on 1 line and the balance of the code below, please help as I am new at this and a student using visual studio 2012
 my code 


public virtual string display()

{

return "Ingred " + "Potassium Nitrate:"+potNit.ToString()+"Charcoal:"+charc.ToString()+"Sulphur:"+sulp.ToString()+"Cost:"+
cost().ToString ("R0.00") + burnRate().ToString();

}

Answers (2)