// Online C compiler to run C program online #include <stdio.h> int main() { int size; printf("Enter the size of the array: "); scanf("%d",&size); int apart[size]; int count = 0; for(int i = 0; i < size; i++){ printf("Element - %d: ",i+1); scanf("%d",&apart[i]); } for(int i = 0; i < size; i++){ if(apart[i]%2==1){ count++; } else{ continue; } } printf("The largest continuous number of women is %d",count); 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