0
6. Write a C code that takes three integers a, b, c as inputs and output the maximum and minimum of them.
full code plz
6 Respuestas
+ 11
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);
+ 11
welcome 😊
+ 1
if you really want to learn programming come up with your own code and if you get stuck people here will be happy to help
+ 1
I am confused about this....I can solve the maximum and minimum separatelly....but not in this type
+ 1
tnx @khadeeja shamna :)