diff --git a/program-2/a.out b/program-2/a.out new file mode 100755 index 00000000..c9a0fd26 Binary files /dev/null and b/program-2/a.out differ diff --git a/program-2/program.c b/program-2/program.c new file mode 100644 index 00000000..eaae4e69 --- /dev/null +++ b/program-2/program.c @@ -0,0 +1,29 @@ +#include +int isprime(int n) /*user defined function */ +{ +if(n==0 || n==1) +{ + return 0; + +} +for(int i=2;i