<!DOCTYPE html>
<html>
<head>
<title>multiplication table</title>
</head>
<body>
<script type="text/javascript">
var i, j;
var m = 1;
for (i = 1; i <= 10; i++) {
for (j = 1; j <= 10; j++) {
document.write(i * j);
}
document.write("\n");
}
</script>
</body>
</html>
Output:
12345678910 2468101214161820 36912151821242730 481216202428323640 5101520253035404550 6121824303642485460 7142128354249566370 8162432404856647280 9182736455463728190 102030405060708090100
it gives output without printing the new line. I want to execute this without using