answersLogoWhite

0

program to find C Programming

#include<stdio.h>

#include<conio.h>

void main()

{

int i,a,b;

printf("Enter a number:");

scanf("%d",&a);

if(a==1)

{

printf("It is not a Prime number");

}

else if(a==2a==3)

{

printf("It is a pime number");

}

else

{

b=0;

for(i=2;i<=a/2;i++)

{

if(a%i==0)

{

b=1;

}

}

if(b==1)

{

printf("It is not a prime number");

}

else

{

printf("It is a prime number");

}

}

getch();

}

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Where can one find C programming tutorials?

You can find C programming tutorials online at the C programming website. They provide both free and paid tutorials for many aspects of the C and C++ code.


What is the C programming of check the prime number with flow chart?

flow t prime numberchar


How do you write a c program to get a range from user and give a list of prime numbers?

To get all tutorials of "c programming" Reference:cprogramming-bd.com/c_page2.aspx# prime number


Find the dimensions of the rectangle of largest area that can be inscribed in a circle of radius a in C programming?

Find the dimensions of the rectangle of largest area that can be inscribed in a circle of radius a in C programming


Where can one find a board or forum for C?

There is a website that you may find interesting called Programming Forums. On this site, there are many people talking about programming languages, including C.


What is the need to use pointers in C programming?

find the address


Where can one find good books on the C programming language?

The best place to find a good selection of books on the C programming language would be Amazon. One can also find some at Barnes&amp;Noble, Overstock, and WalMart.


Where can you get the c programs?

You can find C programs at http://talentsealed.blogspot.com.


What is c and c in computer programming?

C and C++ are both high-level programming languages.


Create a spiral in C programming?

create spiral in c programming?


When was C - programming language - created?

C - programming language - was created in 1972.


Write a c program to find the area and perimeter of circle?

Learn c programming and geometry. It will be easy when you know both.