Prime Numbers - Online Code

Description

This code prints all the Prime numbers in the user specified range.

Source Code

#include<stdio.h>

#include<conio.h>

void main()

{	int p,n,m;

	int is_prime;

	clrscr();

	printf("\nEnter the range to print the prime no.=");

	scanf("%d",&n);

	for(m=2;m<n;m
... (login or register to view full code)

To view full code, you must Login or Register, its FREE.

Hey, registering yourself just takes less than a minute and opens up a whole new GetGyan experience.




Comments

No comment yet. Be the first to post a comment.