--Originally published at TC1017 Programing Curse
For this mastery topic i had to think a lot, it was difficult but after tried and tried i finally did it…
Image taken from meme generator… https://memegenerator.net/instance/65197647
yep i failed, like 3 or 4 times….
#include <iostream>
#include <cmath>
using namespace std;
int x,y,z;
int main ()
{
cout << “Escribe el primer numero” << endl;
cin >> x;
cout << “Escribe el segundo numero” << endl;
cin >> y;
cout << “Escribe el tercer numero” << endl;
cin >> z;
if (x>y) {
if (y>z) {
cout << “El numero mas chico es ” << z << endl;
}
else {
cout << “el numero mas chico es ” << y << endl;
}
}
else {
cout << “el numero mas chico es ” << x << endl;
}
return 0;
}
yes i know its easy…