#include<stdio.h> int main(){ int a,b,c; printf(" three numbers: "); scanf("%d %d %d",&a,&b,&c); if(a>b && a>c){ printf(" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

#include<stdio.h> int main(){ int a,b,c; printf(" three numbers: "); scanf("%d %d %d",&a,&b,&c); if(a>b && a>c){ printf("

show error...plz solve this

7th Jul 2017, 3:38 PM
Noushin tabassum
3 Answers
0
complete the code
7th Jul 2017, 3:43 PM
‎ ‏‏‎Anonymous Guy
0
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:46 PM
Noushin tabassum
0
line no 14 :after %d. " is missing line no 15 :extra. } is causing error
7th Jul 2017, 3:54 PM
‎ ‏‏‎Anonymous Guy