Prime no program using Function with example In c In Hindi

Prime no program using c function :- Prime No In c Program ko ham is post me example ke sath samanjh te hai or fir prime function program ko banane ke uske output ko dekhte hai |

What is Prime No : – Prime No wo hota hai jo ( N%2== 1 ) aane pr bach ta hai |

Isse Or Accha Samanjh Ne Ke Liye Ham Iske Example Ko Dekh Te Hai |

prime no using function

Using function Generate Prime Numbers in C With Example

Example :-

#include <stdio.h>
#include <conio.h>


 int isprime(int num);
   int main()
{
	int n,z;
        printf("Enter The Number To Find Prime Or Not :");
        scanf("%d",&n);
       
        z = isprime(n);
    
        if(z==0)
        {
            printf("Number Is Not Prime %d",n);
        }
        else
        {
           printf("Number is Prime %d",n);
        }
    
getch();

}
int isprime(int num)
{
     int  z=1;
     if( num == 0 || num == 1)
     {
      z = 0 ;
     }
}

Output :-

Enter The Number To Find Prime Or Not : 10
Number Is Not Prime 10


Enter The Number To Find Prime Or Not : 11
Number is Prime 11

Upper Diye Gye Output ko dekh kar aap Prime Program ko samanjh sakte hai |

Find prime No using function in Hindi

Dosto mujhe ummed hai ki aap Prime no program using Function in c ko acchi tarah se samanj gye honge agar aap ko ye post acchi lage to mere is website ko jarur follow kre or ha agar aap video bhi dekhna chahte hai to aap mere channel ko bhi subscribe kar sakte hai. channel ka link aapko home page par mil jayega |

Please follow and like us:
error
Summary
Review Date
Reviewed Item
Find prime No using function in Hindi
Author Rating
51star1star1star1star1star

Danish Ali

I Am a 1st Sem BCA Student & I have Skills C, C++ ,Python, HTML,CSS, Computer & Advance Hacking & Blogger & YouTuber.

Leave a Reply

Your e-mail address will not be published. Required fields are marked *