3 ms·
I found this pretty clever: Input: Write a program that calculates a subjective meaning of life. import java.util.Scanner; /* * Calculates a subjective meanin
by antics9 5y ago
I found this pretty clever:
Input: Write a program that calculates a subjective meaning of life.
import java.util.Scanner; /* * Calculates a subjective meaning of life. / public class SubjectiveMeaningOfLife { /* Main method. */ public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("What is the subjective meaning of life?"); int meaning = input.nextInt(); System.out.println("That is " + meaning + "."); } }
- dvh 5y agoIt even knew people would type number, didn't even bother with strings.