मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता ११

Write a Java Script program using while statement to display 10 numbers. - Computer Applications

Advertisements
Advertisements

प्रश्न

Write a Java Script program using while statement to display 10 numbers.

दीर्घउत्तर

उत्तर

<html>
<Head>
<Title> Display 10 Numbers in Javascript</Title>
</Head>
<Body>
    <script language = “java script” type = “text / java script”>
    document.write (“<h2> using while statement </h2>”)
    Var no2= 0;
    while (no2<=10)
    {
    document.write (no2+ “ ”);
    no2=no2+1;
    }
   </script>
</body>
</html>
shaalaa.com
Looping / Repetitive
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 15: Control Structure in Javascript - Evaluation [पृष्ठ ३३०]

APPEARS IN

सामाचीर कलवी Computer Applications [English] Class 11 TN Board
पाठ 15 Control Structure in Javascript
Evaluation | Q 4. | पृष्ठ ३३०
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×