Skip to content

Instantly share code, notes, and snippets.

@macks2008
Created January 11, 2018 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macks2008/d5bdee767433d8b27ee82803c3d95d97 to your computer and use it in GitHub Desktop.
Save macks2008/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