Run Code
|
API
|
Code Wall
|
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
18BCE2182 ASSESS_1 Q2-2
Partition
Undefined behavior
Assignment 5 v2
Project 4 v1.1
Stub Program for Problem 3 HW 2
sample.c
16-bit signed or unsigned int -> ASCII
FunPointUnion
18BCE2182 ASSESS_1 Q1-2