Search
 
SCRIPT & CODE EXAMPLE
 

HTML

html prime number program

<!doctype html>
<html>
<body>
<script>
var num, i, chk=0;
num=19;
for(i=2; i<num; i++)
{
  if(num%2==0)
  {
    chk++;
    break;
  }
}
if(chk==0)
  document.write(num + " is a Prime Number");
else
  document.write(num + " is not a Prime Number");
</script>
</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Html :: limite file input to jpg 
Html :: a attributes html 
Html :: input text hint 
Html :: <span class="border"</span <span class="border-top"</span <span class="border-end"</span <span class="border-bottom"</span <span class="border-start"</span 
Html :: how to select every element except first 
Html :: coreui padding 
Html :: Text with colour bold 
Html :: make an drodown menu 
Html :: image from website in whatshapp with meta tag 
Html :: bootstrap notifications 
Html :: pyscript 
Html :: html projects for beginners 
Html :: bulleted list html 
Html :: html5 boilerplate code 
Html :: bootstrap slider 
Html :: Centered Menu Semantic UI 
Html :: Basic progressbar with percentage values 
Html :: tailwind box with text 
Html :: input group 
Html :: github page markdown embed html from another file 
Html :: createjs 
Html :: bootstrap offcanvas 
Html :: ONLINE VIDEO CALL FOR MY WEBSITE CODE 
Html :: html stands for what 
Html :: convert figma to html 
Html :: footer html stack overflow 
Html :: Double quotation for meta tag strings on html 
Html :: favicon text/html / Redirect uses bandwith 
Html :: basis html pagina 
Html :: html to text 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =