Graf Line


<html>
<body>
<script>
function hitung()
{
  var n=(document.wahid.ideret.value);
  var x="";
  for(i=1;i<=n;i++)    {
if(i%2==1){
      x=x+((i+1)/2)+" ";
      t=x;
 }else{
 x=x+((5+i+1)/2)+" ";
      t=x;
    }
}
document.getElementById('wahid1').value =t;
}
</script>
<form name="wahid">
<h2 align="left">Label titik x ganjil</h2>
N        : <input type="text" size=1 name="ideret" value="5">
Hasil
TOTAL : <br>
<textarea rows ="4" cols ="80" id="wahid1"></textarea><br>
<input type="button" value="SUBMIT" onclick="hitung()">
<input type="reset" value="RESET">
</form>
</body>
</html>

Graf Line Rating: 4.5 Diposkan Oleh: Catatanku