Computer Science, asked by straiyo, 9 months ago

Write a program to input a number in the range 10 to 100 and check if it is a prime number.​

Answers

Answered by shiva0064
2

Answer:

The number which is only divisible by itself and 1 is known as prime number. For example 2, 3, 5, 7…are prime numbers. Here we will see two programs: 1) First program will print the prime numbers between 1 and 100 2) Second program takes the value of n (entered by user) and prints the prime numbers between 1 and n. If you are looking for a program that checks whether the entered number is prime or not then see:

Similar questions