Write a program to input a number in the range 10 to 100 and check if it is a prime number.
Answers
Answered by
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
English,
4 months ago
English,
4 months ago
English,
4 months ago
Social Sciences,
9 months ago
Political Science,
9 months ago
Science,
1 year ago
Biology,
1 year ago