Posts

Showing posts from May, 2025

Php

 1.prime   < html >     < style >         body {             background-color : lightblue ;                 }     </ style > <?php function isPrime ( $n ) {     if ( $n <= 1 )         return false ;     for ( $i = 2 ; $i <= sqrt ( $n ); $i ++)     {         if ( $n % $i == 0 )             return false ;     }     return true ; } $start = 3 ; $end = 20 ; $count = 0 ; for ( $i = $start ; $i <= $end ; $i ++) {     if ( isPrime ( $i ))     {         echo " $i \t " ;         $count ++;     } } echo " <br>The Total number of Prime numbers are = $count " ; ? > </ html > 2)Messgeg Passing    < html >     ...

Abhijit_python

PART -A Program 1: Check whether the number is belongs to Fibonacci series or not. n=int(input("Enter a number:")) c=0 a=1 b=1 if n==0 or n==1: print("yes,It is Fibonacci Number") else: while c<n: c=a+b b=a a=c if c==n: print("Yes,{0} is fibonacci number".format(n)) else: print("No,{0} is not fibonacci number".format(n)) =========OUTPUT======== Ex:1 Enter a number:5 Yes,5 is fibonacci number Ex:2 Enter a number:4 No,4 is not fibonacci number   Program 2: Solve Quadratic Equations import cmath a=int(input("Enter value for a:")) b=int(input("Enter value for b:")) c=int(input("Enter value for c:")) d=(b**2)-(4*a*c) sol1=(-b-cmath.sqrt(d))/(2*a) sol2=(-b+cmath.sqrt(d))/(2*a) print("the solution are:\n",sol1,"and",sol2) =========OUTPUT======== Enter value for a:5 Enter value for b:10 Enter value for c:15 the solution are: (-1-1.4142135623730951j) and (-1+1.4142135623730951j)   Program 3:Find the sum...

Abhijit HTML

 MultimediaAndAnimation  SECTION A  ProgramNo.1:Program to Design LOG IN Form in Html.  <!DOCTYPEhtml>  <html>  <head>  <metaname="viewpoint"content="width"=device width, initial-scale="1">  <title> Login Page</title>  </head>  <body>  <center><h1>StudentLogin Form</h1></center>  <form><center>  <divclass="container">  <lable>username:</lable>  <inputtype="text" place holder="entertheusername" name="username"requried></div><div>  <lable>password:</lable>  <inputtype="password"placeholder="enter password" name="password"requried></div><BR/>  <button type="submit">login</button>  <inputtype="checkbox" checked="checked"> Rememberme  <buttontype="button"class="Canclebtn">...