[URI Online Judge] 2006 Identifying Tea [c]

Problem link: 2006 Identifying Tea

 
https://www.urionlinejudge.com.br/judge/en/problems/view/2006

 
[c]
#include<stdio.h>
int main()
{
int t,a[5],i,j=0;
scanf("%d",&t);
for(i=0;i<5;i++){
scanf("%d",&a[i]);
if(a[i]==t){
j++;
}
}
printf("%dn",j);
return 0;
}

[/c]

Advertisements