merhaba arkadaşlar hoca okulda asp'de basit bi çarpım tablosu ödevi verdi eğer işine yarıyan olursa paylaşayım dedim..
Normalde Ana Kod Bu Şekilde "><%
for i=1 to 10
c=10
a=c*i
response.write (c&"x" &i& "=" &a)
response.write ("<br>")
next
%>Ama Buda Tüm Çarpım Tablosu 1'den 10'a Kadar Tablolu Felan Hepsi İçinde: <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Çarpım Tablosu</title>
<style type="text/css">
<!--
body {
background-color: #99CCCC;
}
-->
</style></head>
<body>
<table width="200" border="0" align="center">
<tr>
<td bgcolor="#0099FF"><div align="center"><strong>Çarpım Tablosu</strong></div></td>
</tr>
<tr>
<td><table width="413" border="1" align="center">
<tr>
<td width="80" valign="top" bgcolor="#FF0000"><p align="center"><strong>1'Ler</strong></p></td>
<td width="70" valign="top" bgcolor="#FF0000"><div align="center"><strong>2'Ler</strong></div></td>
<td width="80" valign="top" bgcolor="#FF0000"><div align="center"><strong>3'Ler</strong></div></td>
<td width="73" valign="top" bgcolor="#FF0000"><div align="center"><strong>4'Ler</strong></div></td>
<td width="76" valign="top" bgcolor="#FF0000"><div align="center"><strong>5'Ler</strong></div></td>
</tr>
<tr>
<td valign="top" bgcolor="#CCFF66"><%
for i=1 to 10
c=1
a=c*i
response.write (c&"x" &i& "=" &a)
response.write ("<br>")
next
%></td>
<td width="70" valign="top" bgcolor="#CCFF66"><%
for i=1 to 10
c=2
a=c*i
response.write (c&"x" &i& "=" &a)
response.write ("<br>")
next
%></td>
<td width="80" valign="top" bgcolor="#CCFF66"><%
for i=1 to 10
c=3
a=c*i
response.write (c&"x" &i& "=" &a)
response.write ("<br>")
next
%></td>
<td width="73" valign="top" bgcolor="#CCFF66"><%
for i=1 to 10
c=4
a=c*i
response.write (c&"x" &i& "=" &a)
response.write ("<br>")
next
%></td>
<td width="76" valign="top" bgcolor="#CCFF66"><%
for i=1 to 10
c=5
a=c*i
response.write (c&"x" &i& "=" &a)
response.write ("<br>")
next
%></td>
</tr>
<tr>
<td height="10" valign="top" bgcolor="#FF0000"><p align="center"><strong>6'Lar</strong></p></td>
<td valign="top" bgcolor="#FF0000"><p align="center"><strong>7'Ler</strong></p></td>
<td valign="top" bgcolor="#FF0000"><div align="center"><strong>8'Ler</strong></div></td>
<td valign="top" bgcolor="#FF0000"><div align="center"><strong>9'Lar</strong></div></td>
<td valign="top" bgcolor="#FF0000"><div align="center"><strong>10'Lar</strong></div></td>
</tr>
<tr>
<td height="10" valign="top" bgcolor="#CCFF66"><%
for i=1 to 10
c=6
a=c*i
response.write (c&"x" &i& "=" &a)
response.write ("<br>")
next
%></td>
<td valign="top" bgcolor="#CCFF66"><%
for i=1 to 10
c=7
a=c*i
response.write (c&"x" &i& "=" &a)
response.write ("<br>")
next
%></td>
<td valign="top" bgcolor="#CCFF66"><%
for i=1 to 10
c=8
a=c*i
response.write (c&"x" &i& "=" &a)
response.write ("<br>")
next
%></td>
<td valign="top" bgcolor="#CCFF66"><%
for i=1 to 10
c=9
a=c*i
response.write (c&"x" &i& "=" &a)
response.write ("<br>")
next
%></td>
<td valign="top" bgcolor="#CCFF66"><%
for i=1 to 10
c=10
a=c*i
response.write (c&"x" &i& "=" &a)
response.write ("<br>")
next
%></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>Yardımcı Olabilirim İnşallah..