Asp'de Sayının Üssünü Alma

'Programlama' forumunda ...... tarafından 14 Eyl 2009 tarihinde açılan konu

Konu etiketleri:
  1. ......

    ...... Misafir




    Asp herhangi bir sayının üssünün alınması için kullanılan kodlar aşağıda verilmiştir.

    Kod:
     <html>
    <head>
    <meta http-equiv=”Content-Type” content=”text/html; ” />
    <title>Asp üs alma</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>
     

Bu Sayfayı Paylaş