6. Write a C code that takes three integers a, b, c as inputs and output the maximum and minimum of them. | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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

7th Jul 2017, 3:07 PM
Noushin tabassum
6 Antworten
+ 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);
7th Jul 2017, 3:26 PM
khadeeja Shamna
khadeeja Shamna - avatar
+ 11
welcome 😊
7th Jul 2017, 3:29 PM
khadeeja Shamna
khadeeja Shamna - avatar
8th Jul 2017, 6:36 AM
Abhishek Gupta®
Abhishek Gupta® - avatar
+ 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
7th Jul 2017, 3:19 PM
Sandesh
Sandesh - avatar
+ 1
I am confused about this....I can solve the maximum and minimum separatelly....but not in this type
7th Jul 2017, 3:22 PM
Noushin tabassum
+ 1
tnx @khadeeja shamna :)
7th Jul 2017, 3:28 PM
Noushin tabassum