Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C_141113_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++; } } if(c != 0) { printf("COMPUESTO\n\n"); } else { printf("PRIMO\n\n"); } return 0; }
run
|
edit
|
history
|
help
0
Finding the second largets value v0.8
Hello
Project 3 part 2 Book v0.5
String operations in C (without using built-in methods)
A_141125_MenorMayor2
18BCE2182 ASSESS_1 Q2-1
Spring 2017 Project 2 v1.3
sphere
C_141211_OrdenarArrayConFunciones
base