Day 10 of my journey to becoming a Unity game developer

public int bill = 40;
public float tip = 20.0f;
public float totalAmount;
float tipAmount = bill * (tip / 100);
totalAmount = bill + tipAmount;
Debug.Log(“Your bill is: “ + bill + “ and your tip is: “ + tipAmount + “ so you owe: “ + totalAmount);

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store