Notice: Undefined index: alg in
/home/u681245571/domains/studyglance.in/public_html/labprograms/wpdisplay.php on line
82
Notice: Undefined index: url2 in
/home/u681245571/domains/studyglance.in/public_html/labprograms/wpdisplay.php on line
84
Notice: Undefined index: url3 in
/home/u681245571/domains/studyglance.in/public_html/labprograms/wpdisplay.php on line
85
Notice: Undefined index: url4 in
/home/u681245571/domains/studyglance.in/public_html/labprograms/wpdisplay.php on line
86
Notice: Undefined index: url5 in
/home/u681245571/domains/studyglance.in/public_html/labprograms/wpdisplay.php on line
87
Notice: Undefined index: url6 in
/home/u681245571/domains/studyglance.in/public_html/labprograms/wpdisplay.php on line
88
Notice: Undefined index: url7 in
/home/u681245571/domains/studyglance.in/public_html/labprograms/wpdisplay.php on line
89
Notice: Undefined index: url8 in
/home/u681245571/domains/studyglance.in/public_html/labprograms/wpdisplay.php on line
90
Notice: Undefined index: url9 in
/home/u681245571/domains/studyglance.in/public_html/labprograms/wpdisplay.php on line
91
Notice: Undefined index: url10 in
/home/u681245571/domains/studyglance.in/public_html/labprograms/wpdisplay.php on line
92
Notice: Undefined index: title in
/home/u681245571/domains/studyglance.in/public_html/labprograms/wpdisplay.php on line
93
Notice: Undefined index: opurl3 in
/home/u681245571/domains/studyglance.in/public_html/labprograms/wpdisplay.php on line
96
Notice: Undefined index: opurl4 in
/home/u681245571/domains/studyglance.in/public_html/labprograms/wpdisplay.php on line
97
Notice: Undefined index: opurl5 in
/home/u681245571/domains/studyglance.in/public_html/labprograms/wpdisplay.php on line
98
Notice: Undefined index: opurl6 in
/home/u681245571/domains/studyglance.in/public_html/labprograms/wpdisplay.php on line
99
Notice: Undefined index: opurl7 in
/home/u681245571/domains/studyglance.in/public_html/labprograms/wpdisplay.php on line
100
[R18] B-Tech III Year I Semester (3-1) IT Web Programming Lab Manual JNTU Hyderabad (JNTUH).
Aim:
Source Code:
Week-5/Week5.html
<!doctype html>
<html lang="en">
<head>
<title>Week 5 : Count display the Odd Numbers</title>
<script language="javascript">
// to read input from user
var num = parseInt(window.prompt("Enter Any Number :"));
var cnt=0;
document.write("<h3> Odd Numbers from 1 to "+num+" are:</h3>");
for(var i = 1 ; i<=num ; i++) {
if(i % 2 != 0) {
document.write(i+"<br/>");
cnt++;
}
}
document.write("<h3>The number of Odd Numbers from 1 to "+num+" are: "+cnt+"</h3>");
</script>
</head>
<body>
</body>
</html>
Output:
Related Content :
Web Programming Lab Manual
1) Write a html program for Creation of web site with forms, frames, links, tables etc View Solution
2) Design a web site using HTML and DHTML. Use Basic text Formatting, Images View Solution
3) Create a script that asks the user for a name, then greets the user with Hello and the user name on the page View Solution
4) Create a script that collects numbers from a page and then adds them up and prints them to a blank field on the page.
View Solution
5) Create a script that prompts the user for a number and then counts from 1 to that number displaying only the odd numbers View Solution
6) Create a script that will check the field in Assignment 1 for data and alert the user if it is blank. This script should run from a button View Solution
7) Using CSS for creating web sites View Solution
8) Creating simple application to access data base using JDBC Formatting HTML with CSS View Solution
9) Program for manipulating Databases and SQL. View Solution
10) Program using PHP database functions View Solution
11) Write a web application that functions as a simple hand calculator, but also keeps a paper trail of all your previous work View Solution
12) Install Tomcat and use JSP and link it with any of the assignments above View Solution
13) Reading and Writing the files using PHP View Solution