solve this plz | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

solve this plz

int a,b,c; printf(" three numbers: "); scanf("%d %d %d",&a,&b,&c); if(a>b && a>c){ printf("maximum is:%d",a);} else if(b>c){ printf ("maximum is:%d",b);} else{ printf ("Maximum is: %d ",c);} if (a<b && a<c){ printf("minimum is :%d",a);} else if (b<c){ printf("minimum is:%d",b);} else { printf("minimum is:%d,c);} }

7th Jul 2017, 3:48 PM
Noushin tabassum
4 Answers
+ 6
The ending double quote " is missing in last printf statement. There may be some other problems too, can't check it right now as code playground doesn't support C. Edit: if b is greater than c, it doesn't mean that b is greater than a too. Use else if (b>c && b>a). Same logic is applicable for minimum as well.
7th Jul 2017, 3:54 PM
Shamima Yasmin
Shamima Yasmin - avatar
+ 1
answer to the question line no 14 :after %d. " is missing line no 15 :extra. } is causing error
7th Jul 2017, 3:59 PM
‎ ‏‏‎Anonymous Guy
0
it supports use #include<stdio.h> headers
7th Jul 2017, 3:57 PM
‎ ‏‏‎Anonymous Guy
0
tnx all
7th Jul 2017, 3:59 PM
Noushin tabassum