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
Physics,
4 months ago
Social Sciences,
4 months ago
Hindi,
4 months ago
Social Sciences,
8 months ago
Political Science,
8 months ago
Science,
11 months ago
Biology,
11 months ago