Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Prime
#include<stdio.h> main( ) { int n,i,count = 0; printf("Enter the value of n "); scanf("%d",&n ); for(i=1 ; i<=n ; i++ ) { if( n%i == 0 ) { count ++ ; } } if( count == 2 ) printf("Prime number"); else printf("Not prime number"); }
run
|
edit
|
history
|
help
0
18BCE2182 ASSESS_1 Q2-1
Hello world.c
printing float 2 pointers
FloatFahrenheitToCelcius
Pointer arithmatic
KN king Array ques
A_141121_mayorMenor
B_141209_TrianguloTartalia
gkckibvsj
Q1.c