Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
A_141117_Primo01
//Title of this code #include <stdio.h> int main(void) { short N; short d; short c; printf("Valor de N ... "); scanf(" %hd", &N); for(c = 0 , d = 2 ; d <= N / 2 && c == 0 ; d++) { if(N % d == 0) { c = 1212; } } if(c == 0) { printf("%hd es PRIMO\n\n", N); } else { printf("%hd es COMPUESTO\n\n", N); } return 0; }
run
|
edit
|
history
|
help
0
FloatFahrenheitToCelcius
FUNCTIONS Shape functions
20171117_FUNCIONES
exercises
bit shift and mask
linear hybrid cellular automaton utilizing rules 90 and 150 with period of (2^64)-1 for generating high quality random bits is reversible
CALCULADORA
Pozdravljeni v mali soli C.
Alphabet Triangle
a weird way to print hello, world! hmm...