Guest User

Guest User

  • Tech Writer
  • 41
  • 16.4k

How do I get certain code to onto the next line

Mar 9 2014 6:15 AM
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)