Saturday, 30 December 2017

C program to check a given number is prime number or not

int main( )
    int n, i, k=0;
    printf("Enter the number");

    for(i=2; i<n; i++)

        printf("%d is prime number",n);


        printf("%d is not prime number",n);

return 0;


No comments:

Post a Comment

Featured Post

TCS Latest Test Patern ( For On-Campus Drives )

Tata Consultancy Services is software services consulting company whose  headquarter is situated in Mumbai, India. It is the Asia’s larges...