#include <iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a<b){
if(a<c) cout<<a;
if(c<a) cout<<c;
}elseif(b<c){
if(a<b) cout<<a;
if(c<a) cout<<b;
}
return 0;
}
SAU mai simplu....uitasem functia din std numita min..a trebuit sa-i caut caracteristicile pe internet. Deci codul vine asa:
//include si restul
int main(){
int a,b,c;
cin>>a>>b>>c;
cout<<min(a,min(b,c));
return 0;
}