برنامه ای بنویسید که 2 عدد A و B را گرفته و باجمعهای متوالی آنها را در هم ضرب کند. به تعداد A * B = A + A + A B
Get ( A )
Get ( B )
Cmp A , 0
Jz End1
Cmp B , 0
Jz End2
Cmp A , 1
Je End3
Sum db 0
Temp db 0
Mov CX , B
L :
Add Sum , A
Add Sum , Temp
Loop L
Print ( Sum )
Jmp End
End1 :
Print ( A )
Jmp End
End2 :
Print ( B )
Jmp End
End3 :
Cmp B , 1
Je End1
Jmp End
End :
برنامه ای بنویسید که بطور متوالی از کاربر عدد دریافت کند و تازمانی ادامه دهد که کاربر عدد صفر را وارد کند و در انتها جمع و
میانگین اعداد داده شده را نمایش دهد .
Sum db 0
Temp1 db 0
Temp2 db 0
Temp3 db 0
Get ( A )
Cmp A , 0
Je End1
L :
Mov Temp1 , A
Add Sum , Temp1
Mov Temp1 , 0
Inc Temp2
Loop L
Jmp End1
End1 :
Div Sum,Temp2
Mov Temp3 , AL
Print ( Temp3 )
Print ( Sum )
Jmp End
End :
برنامه ای بنویسید که 2 عدد از ورودی گرفته و با ضرب متوالی آنرا به توان عدد اول برساند . به تعداد B A ^ B = A * A * A*
Get ( A )
Get ( B )
Cmp B , 0
Je J1
Cmp B , 1
Je J2
Dec B
Mov CX , B
L :
Mul A * A
Loop L
Print ( A )
Jmp End
J1 :
Mov A , 1
Print ( A )
Jmp End
J2 :
Print ( A )
Jmp End
End :
<html>
<body style="background-color:yellow">
<h2>Look: Colored Background!</h2>
</body>
</html>
=================================
<table style="background-color:white" cellspacing="0" cellpadding="3" border="1" width="100%">
<tr>
<th width="50%">Color</th>
<th width="25%">Color HEX</th>
<th width="25%">Color RGB</th>
</tr>
<tr>
<td bgcolor="#000000"> </td>
<td>#000000</td>
<td>rgb(0,0,0)</td>
</tr>
<tr>
<td bgcolor="#FF0000"> </td>
<td>#FF0000</td>
<td>rgb(255,0,0)</td>
</tr>
<tr>
<td bgcolor="#00FF00"> </td>
<td>#00FF00</td>
<td>rgb(0,255,0)</td>
</tr>
<tr>
<td bgcolor="#0000FF"> </td>
<td>#0000FF</td>
<td>rgb(0,0,255)</td>
</tr>
<tr>
<td bgcolor="#FFFF00"> </td>
<td>#FFFF00</td>
<td>rgb(255,255,0)</td>
</tr>
<tr>
<td bgcolor="#00FFFF"> </td>
<td>#00FFFF</td>
<td>rgb(0,255,255)</td>
</tr>
<tr>
<td bgcolor="#FF00FF"> </td>
<td>#FF00FF</td>
<td>rgb(255,0,255)</td>
</tr>
<tr>
<td bgcolor="#C0C0C0"> </td>
<td>#C0C0C0</td>
<td>rgb(192,192,192)</td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> </td>
<td>#FFFFFF</td>
<td>rgb(255,255,255)</td>
</tr>
</table>
=================================
<html>
<body>
<!-- this is a comment for this page -->
<a href="http://topdesign.ir">topdesign.ir</a>
<p>This is a external link</p>
<a href="image.html">image example page</a>
<p>This is a internal link</p>
</body>
</html>
==================================
<html>
<body>
<h1>This is my first webpage</h1>
<p>This is some text.</p>
</body>
</html>
==================================
<html>
<body>
<h1 style="font-family:verdana">A heading</h1>
<p style="font-family:courier new; color:red; font-size:20px;">A paragraph</p>
</body>
</html>
==================================
<html>
<body>
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
</body>
</html>
==================================
<html>
<body>
<a href="http::/www.topdesign.ir" title="topDesign.ir webdesign"><h1>TopDesign.ir</h1></a>
<img src="images/topDesignLogo.png" alt="topDesign.ir"/>
</body>
</html>
==================================
<html>
<body>
<p>
An image
<img src="images/topDesignLogo.png" alt="topDesign.ir" align="bottom" >
in the text</p>
<p>
An image
<img src="images/topDesignLogo.png" alt="topDesign.ir" align="middle" >
in the text</p>
<p>
An image
<img src="images/topDesignLogo.png" alt="topDesign.ir" align="top" >
in the text</p>
<p>Note that bottom alignment is the default alignment</p>
<p>
An image
<img src="images/topDesignLogo.png" alt="topDesign.ir">
in the text</p>
<p>
<img src="images/topDesignLogo.png" alt="topDesign.ir">
An image before the text</p>
<p>
An image after the text
<img src="images/topDesignLogo.png" alt="topDesign.ir">
</p>
</body>
</html>
==================================
<html>
<body>
<p>The hr tag defines a horizontal rule:</p>
<hr />
<p>This is a paragraph</p>
<hr />
<p>This is a paragraph</p>
<hr />
<p>This is a paragraph</p>
</body>
</html>
==================================
<html>
<body>
<p>This is<br />a para<br />graph with line breaks</p>
</body>
</html>
==================================line break