RSS

nice info computer,hacking,business, viruss,n many more

Rave's Blog

pengunaan if elseif pada ASP

<%
nama1 = request.form("nama")
alamat1 = request.form("alamat")
pkj1 = request.form("pkj")
gp1 = request.form("gp")
tj1 = request.form("tj")
pr = CLng(gp1)+CLng(tj1)
if pr >= 2500000 then
motor = "HONDA TIGER"
elseif pr >= 2000000 then
motor = "HONDA MEGAPRO"
elseif pr >= 1500000 then
motor = "HONDA KHARISMA"
elseif pr >= 1000000 then
motor = "HONDA SUPRA"
else
motor = "HONDA LEGENDA"
end if
Response.Write"Hasil Proses"
Response.Write""
Response.Write" Nama: " &nama1& ""
Response.Write" Pekerjaan: " &pkj1& ""
Response.Write" Gaji Bersih: " &pr& ""
Response.Write" Mendapat Kredit Motor: " &motor& ""
Response.Write""
Response.Write"Kembali ke Halaman Sebelumnya...!"
'Simpan File ini di C:\Inetpub\wwwroot dengan nama : latih3.asp

info:one.indoskripsi.com

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 komentar:

Posting Komentar