Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C_141113_Primos02
//Title of this code #include <stdio.h> int main(void) { short N; short d; printf("Valor de N ... "); scanf(" %hd", &N); for(d = 2 ; d <= N / 2 && N % d != 0 ; d++); if(N % d != 0) { printf("COMPUESTO\n\n"); } else { printf("PRIMO\n\n"); } return 0; }
run
|
edit
|
history
|
help
0
CS HW2
ptr_to_ptr
22nd HW Switchv0.2
Búsqueda binaria rec
Different variable scanf/printf statements
String Manipulation
Volume of sphere
sum of arrays
A_141121_fibonacci
18BCE2182 ASSESS_3 Q2