Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions C/program-2/program.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Binary file removed C/program-25/a.out
Binary file not shown.
6 changes: 6 additions & 0 deletions C/program-25/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This program is to print the number of *. Example if user enter 5. Then it'll print
*
**
***
****
*****