Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.