// Online C compiler to run C program online
#include <stdio.h>
#include <stdbool.h>
void checkPrime(int p[]){
bool flag = true;
for(int i = 0; i < 5; i++){
if(p[i]%2==0){
flag = false;
}
if(flag==true){
changePrime(a);
}
else(flag==false){
changePrime(a);
}
}
}
void changePrime(int a[]){
for(int i = 0; i < 5; i++){
a[i] = 0;
}
for(int i = 0; i<5;i++){
printf("%d", a[i]);
}
}
int main() {
int x[5] = {2,3,9,4,5};
changePrime(a);
return 0;
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter