What do you want to save?
Add Code snippet
New code examples
-
C 2021-11-04 01:15:13
prime or composite in c using function
#include<stdio.h> int prime_composite(int num); void main() { int n,ret; printf ("Enter a number: "); scanf ("%d",&n); ret = prime_composite(n); if(ret == 2 ) printf("\nThe number is Prime\... Add solution
Best helpers
Derek Kaplan
+5
Sqlsourcerer
+5
Ken N.
+5
Rene Duchamp
+5
Susette87
+5
Tanveer Ali
+5
Simon LANG
+5
Andrew Besag
+5
Littleprince
+5
Bridget W.
+5
Haidy Kassem
+5
Ferhat Turan
+5
Jwp36
+5