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);} }
4 Antworten
+ 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.
+ 1
answer to the question
line no 14 :after %d. " is missing
line no 15 :extra. } is causing error
0
it supports use
#include<stdio.h>
headers
0
tnx all