write a program to print the number of the prime digits of an entered number
Answers
Answered by
1
Answer:
int main() { int n, result; printf("Enter an integer to check whether it's prime or not.\ n"); scanf("%d",&n);
result = check_prime(n); if (result == 1) printf("%d is prime.\ n", n); else. printf("%d isn't prime.\ ...
int check_prime(int a) { int c; for (c = 2; c <= a - 1; c++) {
Similar questions