Write a JavaScript program to display odd numbers up to user specified times.
<html>
<head>
<title>Generate Odd numbers upto n</title>
</head>
<body>
<script>
var n = parseInt(prompt("Enter upto which u want to print odd numbers", "0"));
for(var i = 1; i <= n; i = i + 2)
{
document.write(i + "<br>");
}
</script>
</body>
</html>
