Tekil Mesaj gösterimi
Alt 13.09.2018, 13:19   #1 (permalink)
SrKn
ultrAslan

Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
Standart Aspde bir sayının üssünü almak

Aspde bir sayının üssünü almak


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; " />
<title>Bir Sayının Herhangi Bir Üssünü Almak</title>
</head>
<body>
<%
islem = request.querystring("islem")
if islem = "" then
%>
<form method="post" action="?islem=hesapla" />
Taban : <input type="text" name="taban" />
<br>
Üs : <input type="text" name="us" />
<br>
<input type="submit" value="Hesapla" />
</form>
<%
elseif islem = "hesapla" then
taban = request.form("taban")
us = request.form("us")
if IsNumeric(taban) AND IsNumeric(us) = TRUE Then
sonuc = taban^us
response.write " "&taban&" sayısının "&us&". kuvveti : "&sonuc&"<br><a href=""?islem="">Yeni Hesap</a> "
else
Response.write "Sayısal değerler giriniz.<br><a href=""?islem="">Yeni Hesap</a>"
end if
end if
%>
</body>
</html>
:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; " />
<title>Bir Sayının Herhangi Bir Üssünü Almak</title>
</head>
<body>
<%
islem = request.querystring("islem")
if islem = "" then
%>
<form method="post" action="?islem=hesapla" />
Taban : <input type="text" name="taban" />
<br>
Üs : <input type="text" name="us" />
<br>
<input type="submit" value="Hesapla" />
</form>
<%
elseif islem = "hesapla" then
taban = request.form("taban")
us = request.form("us")
if IsNumeric(taban) AND IsNumeric(us) = TRUE Then
sonuc = taban^us
response.write " "&taban&" sayısının "&us&". kuvveti : "&sonuc&"<br><a href=""?islem="">Yeni Hesap</a> "
else
Response.write "Sayısal değerler giriniz.<br><a href=""?islem="">Yeni Hesap</a>"
end if
end if
%>
</body>
</html>

alıntı

__________________

Fitness Eğitmeni
SrKn isimli Üye şimdilik offline konumundadır Alıntı ile Cevapla