How to Create prime and composite no flow chart

  • How to Create prime and composite no flow chart

  • 1 Comment sorted by



  • SOURCE CODE :

    #include
    #include
    void main(void)
    {
    int num, x, flag=0;
    clrscr();
    printf("ENTER any Number\n");
    scanf("%d",num);
    for(x=2;x<=num/2;x++)<br /> {
    if(num%x==0)
    {
    flag=1;
    }
    else
    {
    continue;
    }
    }
    if(flag==0)
    {
    printf("\n Prime");
    }
    else
    {
    printf("\n Composite");
    }
    }
    getch();
    }



Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week

    Optimum Creative