answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: How do you write a BASIC program to display whether the input number is prime or composite?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you prove that a number is a composite?

To prove whether a number is composite, factor it. A number having any factor besides 1 and itself is composite.


Is 20 whether a prime number or compsite number?

20 is a composite number


Can a number not be prime or composite?

Now.... That depends on whether it is a number orr not!? :)


How do you figure out a composite number?

A number can be factored to determine whether it is prime or composite. A prime number has exactly 2 factors, 1 and the number itself. A composite number has more than two factors.


Can you tell a prime or composite number by seeing if its odd or even?

You cannot. If a number is even - other than 2 - then it is a composite number. However, if it is odd, it is not easily possible to tell whether it is prime or composite.


Write a program which takes any number of days from the user the program should display the number of years number of months formed by these days as well as the remaining days?

Write a program which takes any number of days from the user. the program should display the number of years, number of months formed by these days as well as the remaining days.


Describe whether 35 a composite neither or prime?

35 is a composite number because it has more than two factors


How can your knowledge of divisibility rules help you to determine whether a number is prime or composite?

If a number is divisible by anything other than itself and 1, it's composite.


What is the fastest way to tell whether a number is prime or composite?

Ask us.


How do youdetermine whether a number a number is prime or composite?

A prime number has only 2 factors which are 1 and itself. Composite numbers are everything else except 1 and 0. 1 and 0 are neither prime, nor composite.


How do you find the LCM of a composite number?

You need at least two numbers to find an LCM. It doesn't matter whether they are prime or composite.


How do you tell whether a number is prime or composite?

Prime numbers have only two factors. Composite numbers have more than two.