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;
}
wrong answer 10%
ReplyDeleteplz cheak your code