OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
Prim
1. PRIMEORN
//write a progaram to check a number is prime or not.
#include<stdio.h>
#include<conio.h>
void main()
{
int i,n,c=0;
clrscr();
printf("enter any number:");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
if(n%i==0)
{
c++;
}
}if(c==2)
{ printf("%d is a prime no.",n); }
else
{ printf("%d is not a prime no.",n); }
getch();
}
//created by: ankit dubey
Page 1