Friday, July 22, 2016

UVA 13012: Identifying tea -Solution

Unknown
#include<stdio.h>
int main ()
{
    int t,i,n,c;
    while (scanf("%d",&t)==1)
    {
        i=5;
        n=0;
        while (i--)
        {
            scanf("%d",&c);
            if (c==t) n++;
        }
        printf("%d\n",n);
    }
    return 0;
}

Unknown

Studying at Shahjalal University of Science and Technology, Sylhet.

0 comments:

Post a Comment

Coprights @ 2016,