Advertisement
RahmanIEN

Operator Tenary

Jun 22nd, 2023 (edited)
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.11 KB | Source Code | 0 0
  1. <?php
  2. $score = 80;
  3. $result = ($score >= 60) ? "berhasil" : "gagal";
  4. echo $result;
  5. // Output: berhasil
  6. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement