answersLogoWhite

0


Best Answer

#include<stdio.h>

main()

{

int check, i, x,y,m;

printf("enter the number upto which check");

scanf("%d",&check);

y=1;

for(m=2; m<=check; m++)

{

for(x=2;x<m; x++)

{ y=m%x;

if(y==0)

break;

}

if(y!=0)

printf("%d is Prime number\n",m);

else printf("%d is not a prime number\n",m);

}

getch();

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program to find of all prime number between 100and 500?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write a ratio or a fraction as a percent?

well, to convert a fraction as a percent divide the top number by the bottom number,then multiply the result by 100and add the percentage sign (%)


Write a program to convert a 2 digit BCD number into hexadecimal number?

Write a program to convert a 2-digit BCD number into hexadecimal


Write a statementin a java program to read 2 integers and dispay the number of interagers between them?

a=153 a=n%10;


2 Write a program to convert a 2-digit BCD number into hexadecimal?

WRITE A PROGRAM TO CONVERT A 2-DIGIT bcd NUMBER INTO HEXADECIMAL


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.


Writes a c program to find the sum of all integers between 1 and n?

Write a program to find the number and sum of all integers from 100 to 300 that are divisible by 11


How do you write a c program to convert binary to decimal by using while statement?

write a c++ program to convert binary number to decimal number by using while statement


Write a program that read phrase and print the number of lower-case letter in it using function of counting?

write a program that reads a phrase and prints the number of lowercase latters in it using a function for counting? in C program


Write a program By using if else statement to read a number and check whether it is positive or negative?

write a c++program by using if statement to read a number and check whether it is positive or negative


Write a C program to convert hexadecimal number into decimal number?

pongada punda vayanungala ..................


A program c plus plus on automorphic numbers or not?

how to write a program that counts automorphic number from 1 to 999


What is the difference between an algorithm and a computer program?