finding Smallest integer(in C programming) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

finding Smallest integer(in C programming)

if else

21st Jul 2019, 4:07 AM
Aye Pa Pa Aung
Aye Pa Pa Aung - avatar
2 Answers
+ 6
if ( a<b && a<c && a <d ) int mini = a; else if ( b<a && b<c && b< d) mini = b ; else if ( c<a && c<b && c<d ) mini = c; else{ mini = d; } https://code.sololearn.com/cp3bLJOA2uPr/?ref=app
10th Sep 2019, 3:39 PM
Aung Thiha
Aung Thiha - avatar
+ 2
if (a < b) smallest = a; else smallest = b;
21st Jul 2019, 6:42 AM
Vlad Serbu
Vlad Serbu - avatar