diff --git a/C/program-2/program.c b/C/program-2/program.c index eaae4e69..414b2e8e 100644 --- a/C/program-2/program.c +++ b/C/program-2/program.c @@ -15,15 +15,15 @@ return 1; int main() /*main function */ { int n; - printf("enter the number"); + printf("Enter the number:"); scanf("%d",&n); if(isprime(n)==0) { - printf(" not prime"); + printf("%d is not prime number.",n); } else if(isprime(n)==1) { - printf("prime"); + printf("%d is a prime number.",n); } return 0; - } +} diff --git a/C/program-25/a.out b/C/program-25/a.out deleted file mode 100755 index 83930e91..00000000 Binary files a/C/program-25/a.out and /dev/null differ diff --git a/C/program-25/readme.txt b/C/program-25/readme.txt new file mode 100644 index 00000000..5519cbfa --- /dev/null +++ b/C/program-25/readme.txt @@ -0,0 +1,6 @@ +This program is to print the number of *. Example if user enter 5. Then it'll print +* +** +*** +**** +*****