Homecomposite number Write a program to check whether a number is prime or composite. July 05, 2019 0 Comments Facebook Twitter #include<stdio.h> #include<conio.h> void main ( ) { int num,I,f=0;printf(“Enter the number you want to check:\n);scanf(“%d”,&num);for(i=2;i<num;i++) { if(num%i==0){ f=f+1; }}if(f==0) { printf(“number %d is prime “,num); }elseprintf(“number %d is composite”,num);getch();} Output PDfmaze / ApkNxthttps://pdfmaze.com/surveying-vol-1/https://pdfmaze.com/tomb-of-annihilation-pdf/https://pdfmaze.com/mordenkainens-tome-of-foes-pdf/https://pdfmaze.com/building-materials-construction-pdf/https://pdfmaze.com/out-of-the-abyss-pdf/https://pdfmaze.com/tales-from-the-yawning-portal-pdf-2017-drive/https://pdfmaze.com/rise-of-tiamat-pdf/https://pdfmaze.com/death-of-a-salesman-pdf/https://pdfmaze.com/storm-kings-thunder-pdf/https://pdfmaze.com/behold-a-pale-horse-pdf/https://pdfmaze.com/sword-coast-adventurers-guide-pdf/https://pdfmaze.com/the-tragedy-of-macbeth-pdfdrive/https://pdfmaze.com/waterdeep-dragon-heist-pdf2018-download/https://pdfmaze.com/ Tags composite number prime number Facebook Twitter
Post a Comment
thank u so much
love 3