Skip to content

Instantly share code, notes, and snippets.

@Twisted-Code
Created January 11, 2018 17:04
Show Gist options
  • Save Twisted-Code/d5bdee767433d8b27ee82803c3d95d97 to your computer and use it in GitHub Desktop.
Save Twisted-Code/d5bdee767433d8b27ee82803c3d95d97 to your computer and use it in GitHub Desktop.
public class VariablesTut {
public static void main(String[] args) {
double pi = 3.14;
int perfectnum;
perfectnum = 777;
System.out.print(pi);
System.out.println(" is the value of pi, but let's make a newline");
System.out.print("the perfect number is ");
System.out.print(perfectnum);
System.out.println(" but who's newline is it anyway?"); //*rimshot*
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment