Bir Sayının Herhangi Bir Üssünü Almak (Asp)

ontedi

New member
Girdiğimiz bir sayının herhangi bir kuvvetini nasıl alırız işte cevabı :
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-9" />
<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ı değil alınteri.
 

HTML

Üst