Advertisement
Sythz

Untitled

Sep 25th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.13 KB | None | 0 0
  1. <?php
  2.     $angka = -2;
  3.     $hasil = ($angka < 0 ? "Negatif" : "Positif");
  4.  
  5.     echo "Angka $angka termasuk bilangan $hasil"
  6. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement