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
prime numbers using functions
advanced string manipulation
A_141117_Primo02
Official Hello World
gets.c
If Statement/ Decrements V2
CO Assignment 1 Question 4
gkckibvsj
1
Stack frame enum test