#include void main() { int n,n_1,n_2,n_3,n_4,n_5; printf("Enter the number of birds:"); scanf("%d",&n); printf("\nEnter the number of type 1 birds"); scanf("%d",&n_1); printf("\nEnter the number of type 2 birds"); scanf("%d",&n_2); printf("\nEnter the number of type 3 birds"); scanf("%d",&n_3); printf("\nEnter the number of type 4 birds"); scanf("%d",&n_4); printf("\nEnter the number of type 5 birds"); scanf("%d",&n_5); if(5n_2&&n_1>n_3&&n_1>n_4&&n_1>n_5) printf("most common type is=%d\n",n_1); else if(n_2>n_1&&n_2>n_3&&n_2>n_4&&n_2>n_5) printf("most common type is=%d\n",n_2); else if(n_3>n_2&&n_3>n_1&&n_3>n_4&&n_3>n_5) printf("most common type is=%d\n",n_3); else if(n_4>n_2&&n_4>n_3&&n_4>n_1&&n_4>n_5) printf("most common type is=%d\n",n_4); else if(n_5>n_2&&n_5>n_3&&n_5>n_4&&n_5>n_1) printf("most common type is=%d\n",n_5); } else printf("flock has different types of birds"); } else printf("invalid number"); }