Home
Home-icon
Home
C program to print Prime Number between any two given limit
C program to print Prime Number between any two given limit
SACHIN LAL M S
January 27, 2019
#include<stdio.h>
#include<conio.h>
int main()
{
int l,u,i,x;
printf("Enter two limits");
scanf("%d%d",&l,&u);
for(x=l+1;x<=u-1;x++)
{
for(i=2;i<x;i++)
if(x%i==0)
break;if(i==x)
printf("%d \0",x);
} getch();
return 0;
}
Post a Comment
0 Comments
Bottom Ad [Post Page]
Search This Blog
Recent Posts
Responsive Advertisement
Help Center
Contacts
Ebook / Notes
Facebook
Google
Question Paper
About Me
SACHIN LAL M S
View my complete profile
Contact Form
Author Social Links
Advertisement
Responsive Advertisement
Social Plugin
facebook
twitter
instagram
LinkedIn
Question Paper
Contacts
Ads
Advertisement
Social Plugin
Facebook
Popular Posts
Character Data Type in Java
August 01, 2020
IoT and its Impact on Software Development
September 21, 2021
How To Remove Shortcut Virus From Your Pc
September 25, 2019
0 Comments