This commit is contained in:
2024-06-17 03:24:07 +03:00
parent 04d946e28c
commit 7522af1dc2
10 changed files with 105 additions and 5 deletions

View File

@ -6,20 +6,20 @@ int count = 0;
while (a < number) {
if(number%a == 0) {
count += 1;
a++;
} else {
a++;
printf("%s\n", "No it isn't a Prime");
return;
}
a++;
}
if(count == 1) {
printf("%s\n", "Yes it's a Prime");
} else {
printf("%s\n", "No it isn't a Prime");
}
}
int main(void) {
int number;
printf("%s\n", "Enter a integer!");

Binary file not shown.