#include<stdio.h>
int main()
{
int i,j=5,a[4],n,count=0;
for(i=0; i<4; i++)
scanf("%d",&a[i]);
for(i=0; i<4; i++)
{
printf("%d ",a[i]);
if(a[i]==j)
{
count++;
}
}
printf("\nNo 5 exist in this array %d times",count);
return 0;
}
No comments:
Post a Comment