Created
September 30, 2016 13:21
-
-
Save mokomokohitsuzi/626e2866a65aacf01b5c4e08e2267240 to your computer and use it in GitHub Desktop.
新・明解Java入門 演習2-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int x; | |
int y; | |
int z; | |
x = 63; | |
y = 18; | |
z = 20; | |
System.out.println("xの値は" + x + "です。"); | |
System.out.println("yの値は" + y + "です。"); | |
System.out.println("zの値は" + z + "です。"); | |
System.out.println(); | |
System.out.println("合計は" + (x + y + z) + "です。"); | |
System.out.println("平均は" + (x + y + z) / 3 + "です。"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment