Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. /*
  2. 宣告兩 int 整數 z, b, 以及一個boolean 變數 result
  3. - 讓 z 大於 b, 印出 :z > b = true"
  4. */
  5. public class HW5 {
  6. public static void main (String [] args) {
  7. int z = 99;
  8. int b = 17;
  9. boolean result;
  10.  
  11. if (z > b == true) {
  12. System.out.println("z > b = true");
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement