Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Prime check
//gcc 5.4.0 #include <stdio.h> int main(void) { int n, count=0; printf("Enter a number n \n"); scanf("%d",&n); for(int i=1; i<=n; i++) { if(n%i==0) count++; } if(count==2) printf("The number %d is prime", n); else printf("The number %d is not prime", n); return 0; }
run
|
edit
|
history
|
help
0
Atoi without minus
MATRICES DE CADENAS CON PUNTEROS
C_141210_Tartaglia
Lab 7 blackjack v1.0
a>=0 && b>=a
Array Struct, Call-By-Reference, Malloc, Free, Init, Destroy ... Example
lab5!
est
Dangling
alphabet2 pyramid right