This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Demo | |
{ | |
public static void main (String[] args) | |
{ | |
int i,j; | |
int sum = 0; | |
for(i=1;i<5;i++) | |
for(j=1;j<i;j++) sum++; | |
System.out.println(sum); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var cnt = 0; | |
for(var i = 1; i <= 3; i++) | |
for(var j = 1; j <= i; j++) { | |
cnt=cnt + 1; | |
document.write(j + "<br>"); | |
} | |
document.write("output="+cnt); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() { | |
int sum = 0; | |
for(int i=1;i<5;i++) | |
for(int j=1;j<i;j++) sum++; | |
printf("count= %d",sum); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var myv = fac(5); | |
document.write(myv); | |
function fac(v) { | |
if(v == 0) | |
return 1; | |
else | |
return(v * fac(v - 1)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var x = window.prompt("put a number") | |
var y = window.prompt("put another number") | |
var z = parseInt(x) + parseInt(y); | |
window.alert(z); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var ar = new Array(); | |
ar[0] = window.prompt("put a number"); // 3 | |
ar[1] = window.prompt("put a number"); // 4 | |
ar[2] = window.prompt("put a number"); // 5 | |
ar[3] = window.prompt("put a number"); // 6 | |
ar[4] = window.prompt("put a number"); // 7 | |
window.alert(ar.length); // 5 | |
var keep = ""; | |
for (idx in ar) { keep += ar[idx]; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
* { | |
-moz-filter:grayscale(100%); /* firefox */ | |
-webkit-filter:grayscale(100%); /* safari, chrome */ | |
filter:gray; /* IE6-9 */ | |
filter:grayscale(100%); | |
} | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html xmlns:v="urn:schemas-microsoft-com:vml" | |
xmlns:o="urn:schemas-microsoft-com:office:office" | |
xmlns:w="urn:schemas-microsoft-com:office:word" | |
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" | |
xmlns="http://www.w3.org/TR/REC-html40"> | |
<head> | |
<meta http-equiv=Content-Type content="text/html; charset=windows-874"> | |
<meta name=ProgId content=Word.Document> | |
<meta name=Generator content="Microsoft Word 14"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (รักลูก = true) { do(ดูแลลูก) } | |
if (รักแฟน = true) { do(ดูแลแฟน) } | |
if (พ่อแม่รักเรา = true) { do(พ่อแม่ดูแลเรา) } | |
if (รักพ่อแม่ = true) { do(ดูแลพ่อแม่) } | |
if (รัก x = true) { do(ดูแล x ) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ปรับปรุง : 2559-12-04 */ | |
#main{background-color:#000099;font-family:microsoft sans serif;font-size:12px;margin:0px 0px 0px 0px} | |
fieldset{margin:10px 0px 0px 0px;padding:0px} | |
legend{background-color:#444444;color:#ffffdd;font-size:14px;display:block;padding-left:5px;padding-right:10px;border:2px solid #f9f9f9} | |
.topbar{width:100%;font-size:20px;background-color:black;color:white;text-align:center;height:90px;padding:0px;border-spacing:0px;border-style:none} | |
.topbar a:link, .topbar a:visited{color:#aaffaa;text-decoration:none} | |
.topbar td {text-align:center} | |
.foot_text{color:yellow;text-decoration:none} | |
.m_still{width:728px;background-color:white;margin-left:auto;margin-right:auto;padding:0px;border-spacing:0px} | |
.m_hidden{width:728px;vertical-align:top;margin:0px 0px 0px 0px;margin-left:auto;margin-right:auto;padding:0px;border-spacing:0px} |
OlderNewer