Execution Complete File-1
Execution Complete File-1
Code :
<!DOCTYPE html> }
<html lang="en"> else if(n<0)
<head> {
<meta charset="UTF-8"> document.write("number is
<meta name="viewport" negative="+n);
content="width=device-width, initial- }
scale=1.0"> else
<title>Execution program 2</title> {
</head> document.write("given number is
<body> zero="+n);
<script> }
var n=parseInt(prompt("enter </script>
number"));
if(n>0) </body>
{ </html>
document.write("number is
positive="+n);
Output:
Code :
<!DOCTYPE html> }
<html lang="en"> if(final==temp)
<head> {
<meta charset="UTF-8"> document.write("the inputed number
<meta name="viewport" is palindrone");
content="width=, initial-scale=1.0"> }
<title>Palindrone number</title> else{
<script> document.write("the inputed number
var n=parseInt(prompt("enter is not palindrone");
number")); }
var rem,temp,final=0; </script>
temp=n; </head>
while(n>0) <body>
{
rem=n%10; </body>
n=parseInt(n/10); </html>
final=final*10+rem;
Output :
Output:
Code :
<!DOCTYPE html> var fact=1;
<html lang="en"> for(var i=1;i<=n;i++)
<head> {
<meta charset="UTF-8"> if(n%1==0)
<meta name="viewport" {
content="width=device-width, initial- fact*=1;
scale=1.0"> document.write("<br>");
<title>program 5</title> document.write(i);
</head> }
<body> }
<script> </script>
var n=parseInt(prompt("Enter </body>
number:")) </html>
Output:
Code :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pattern</title>
</head>
<body>
<script>
var n=parseInt(prompt("enter number"));
for(i=0;i<=n-1;i++)
{
for(j=0;j<=i;j++)
{
document.write("*");
}
document.write("<br>");
}
</script>
</body>
</html>
Output:
Code :-
<!DOCTYPE html>
<html lang="en"> var total=p*q
<head>
<meta charset="UTF-8"> var GST=(total*g)/100
<meta name="viewport"
content="width=device-width, initial- var totalAmt=total+GST
scale=1.0">
<title>GST Percentage</title> document.write("<br>price="+p)
</head> document.write("<br>quantity="+q)
<body> document.write("<br>gst="+g)
<script type="text/javascript">
document.write("<br>total amount of
var p=parseInt(prompt("enter the bill="+totalAmt)
price:"));
var q=parseInt(prompt("enter the </script>
quantity:"));
var g=parseInt(prompt("enter the gst </body>
with percentile:")); </html>
Output :-
Output:
Output:
execution Program:-10
Aim:- create a webpage using html, css create a styled checkbox with animation on state
change .
Coding:-
<html> transform: height: 100vh;
<head> rotatex(90deg)rotatey align-items: center;
<style> (90deg) ; justify-items:
.c-checkbox > position: relative; center;
input[type=checkbox] top: 10px; user-select: none; -
{ } webkit-user-select:
width: 40px; height: .c-checkbox > div > none;
40px; i:nth-of-type(2){ -webkit-tap-
cursor: pointer; background: navy; highlight-color:
opacity: 0; right: 20px; transparent;
margin: 0; } }
appearance: none; - .c-checkbox > div > </style>
webkit-appearance: i:nth-of-type(3){ </head>
none; background: <body>
} darkslategray; <main>
.c-checkbox > div{ left: 20px; <div class=c-
display: grid; } checkbox>
pointer-events: input:checked + div{ <input
none; transform: rotatey( type=checkbox
transition: 180deg ); id=un>
transform .6s cubic- } <!-- cube design ↴ --
bezier(.8, .5, .2, 1.4); .c-checkbox{ >
transform-style: display: grid;
preserve-3d; width: 40px; height: <div><i></i><i></i><
} 40px; i></i><i></i></div>
.c-checkbox > div > *{ } </div>
grid-area: 1/1; .c-checkbox > *{ <label
} grid-area: 1/1; for=un>MBA</label>
.c-checkbox > div > }
i:first-child{ label{ <div class=c-
background: blue; font: 60px Girassol; checkbox>
transform: color: lime; <input
translatez( -10px ); type=checkbox
text-shadow: 2px 0
} id=deux checked>
blue;
.c-checkbox > div > <!-- cube design ↴ --
cursor: pointer;
i:last-child{ >
}
background: #ddd; main{
transform: <div><i></i><i></i><
display: grid; i></i><i></i></div>
translatez( 10px ); grid: repeat(5,
} </div>
70px) / 90px 1fr; <label
.c-checkbox > div > align-items: center;
i:nth-of-type(2), for=deux>M.Com.</l
width: max-content; abel>
.c-checkbox > div > }
i:nth-of-type(3){ body{
height: 20px; display: grid;