トピック
ネタバレ
Andres TanookiOcarina

Weight-guessing program in comments!!!!

0そうだね
未プレイ
返信[1]
親投稿
Andres TanookiOcarina
import java.util.*; public class weightGuesser{ public static void main(String[] args){ Random rand = new Random(); int num = rand.nextInt(1000)+2; Scanner input = new Scanner(System.in); int age; String name;
0そうだね
未プレイ
返信[2]
親投稿
Andres TanookiOcarina
[continued from last post] System.out.println("This weight guesser is extremely sensitive; try not to move your fat cells."); System.out.print("Please type in your name: "); name=input.nextLine(); System.out.print("Please type in your age: "); age=input.nextInt(); System.out.print("You weigh "+num+" pounds."); } }
0そうだね
未プレイ
返信[3]
親投稿
Andres TanookiOcarina
It's Java, by the way.
0そうだね
未プレイ