subject

3.Writeprogram codesusing forloop of the followingquestions. The code should be written incomplete JavaScript format. Show thedry run. a)Accept a number from the user, check if the number is a prime number and display an appropriate message. For example, if the user inputs 7, then display the message, “7 is a prime number”, otherwise if the user inputs 8, then display the message, “8 is not a prime number”.(Prime numberis a number whose only factors are1 and the number itself.)b)Display the factorialand the first fivemultiples of 5usinga singlefor loop.(Factorial is the product of an integer and all thepositiveintegers lesser thanit. Eg. 5!=1*2*3*4*5=120)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:30
Ayear in the modern gregorian calendar consists of 365 days. in reality, the earth takes longer to rotate around the sun. to account for the difference in time, every 4 years, a leap year takes place. a leap year is when a year has 366 days: an extra day, february 29th. the requirements for a given year to be a leap year are: the year must be divisible by 4if the year is a century year (1700, 1800, the year must be evenly divisible by 400some example leap years are 1600, 1712, and 2016.write a program that takes in a year and determines whether that year is a leap year.ex: if the input is 1712, the output is: 1712 is a leap year.ex: if the input is 1913, the output is: 1913 is not a leap year.
Answers: 2
question
Computers and Technology, 23.06.2019 12:30
How is the brightness of oled of the diaplay is controled
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Idon’t understand the double8 coding problem. it is java
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
Me ajude por favor , coloquei uma senha e não consigo tira-la no chorme
Answers: 2
You know the right answer?
3.Writeprogram codesusing forloop of the followingquestions. The code should be written incomplete J...
Questions
Questions on the website: 13722362