Saturday, 16 January 2016

Solution of URI 1013 :: The Greatest


Before seeing the solution make sure that you tried enough. Don’t paste the whole code, just find out the logic. If you stuck in trouble, just inform me on comment.

/**Bismillahir Rahmanir Rahim.**/

#include <stdio.h>
int main()
{
    int a,b,c;
    scanf ("%d%d%d", &a, &b, &c);
    if(a>b)
    {
        if(a>c) printf ("%d eh o maior\n",a);
        else printf ("%d eh o maior\n",c);
    }
    if(b>a)
    {
        if(b>c) printf ("%d eh o maior\n",b);
        else printf ("%d eh o maior\n",c);
    }
    return 0;
}

1 comment:

  1. wrong answer 10%
    plz cheak your code

    ReplyDelete

Note: only a member of this blog may post a comment.