Dev Skill DCP-500: Wink or Kick Solution


Problem Link
Dev Skill DCP-500: Wink or Kick Solution
#include<stdio.h>
int main()
{
    int t,i,n;
    long long  a,b;
    scanf("%d",&t);
    while(t--)
    {
        scanf("%lld%lld",&a,&b);
        if((b!=0) && (a%b==0))
            printf(":wink:\n");
        else
            printf(":kick:\n");
    }
    return 0;
}

No comments

Theme images by enjoynz. Powered by Blogger.