Advertisement
Uhuuuyy

nomor4

Jan 20th, 2024
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Oracle 11 0.30 KB | Source Code | 0 0
  1. SET ECHO OFF
  2. SET VERIFY OFF
  3. SET SERVEROUTPUT ON
  4.  
  5. VARIABLE g_gaji NUMBER
  6. ACCEPT p_gaji PROMPT 'Masukkan Gaji Tahunan : '
  7. ACCEPT p_pajak PROMPT 'Masukkan Pajak : '
  8.  
  9. DECLARE
  10.     v_gaji NUMBER := &p_gaji;
  11.     v_pajak NUMBER := &p_pajak;
  12. BEGIN
  13.     :g_gaji := NVL(v_gaji,0)*(1-v_pajak/100);
  14. END;
  15. /
  16. PRINT g_gaji
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement