Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
A_141117_Primo02
//Title of this code #include <stdio.h> int main(void) { short N; short d; printf("Valor de N ... "); scanf(" %hd", &N); for(c = 0 , d = 2 ; d <= N / 2 && N % d != 0 ; d++); if(N % d == 0) { printf("%hd es COMPUEST\n\n", N); } else { printf("%hd es PRIMO\n\n", N); } return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
18BCE2182 ASSESS_2 Q2
ptr_to_ptr
joseph triangle
C Structs Example
FizzBuzz
MATRIZ DE CADENAS
2.2 Comparision with Matrix Addition Execution Time
20161118_ArrayRepetidos
ordenarcifrademenosamas
Numero de veces digito
Please log in to post a comment.