Run Code
|
Code Wall
|
Users
|
Misc
|
Feedback
|
About
|
Login
|
Theme
|
Privacy
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
Please
log in
to post a comment.
Virtual table sketch
Practica 5 ejercicio beneficio empresa
150113_CribaErastotenes
z is 7
MatrixMul_shortxshort
gcc compiler bug.. weird.
hello world
14th Dec Project1 v0.4
digitodentrodenumero
B_141104_NotaSwitch
Please log in to post a comment.