I just wrote this but can never yield the smaller than c result.
#include <iostream>
int main()
{
double a, b, c;
std::cin >> a, b, c;
std::cout << ((a + b > c) ? "BIgger than c" : "Smaller than c");
;return 0;
}
I reckon there's a problem at a + b > c. Is there a correct way to write this?
Aucun commentaire:
Enregistrer un commentaire