Home Top Ad

Responsive Ads Here

Write a Program Leaf Year or Not in Javascript

Share:

 <!DOCTYPE html>

<html>

<head>

<title>leap year</title>

<script type="text/javascript">

     var b,c;

     var a=prompt("Enter year");

     b=a%4;

     c=a%400;

     if(b==0||c==0)

     {

        alert("Given number is leaf");

     }   

     else

     {

        alert("Given number is Not leaf")

     }

    </script>

</head>

<body>

</body>

</html>




























Post a Comment

No comments

Welcome to saveracom.blogspot.com

Data Science using Spreadsheet Software Assignment 3

Printing Workbooks select the cells you want to print and then set that area as the print area   Steps to set a print area: Select the cells...