fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4.  
  5. double a,b,c;
  6. void init(){
  7. cin>>a;
  8. cin>>b;
  9. cin>>c;
  10.  
  11. }
  12. void solve(){
  13. if(a>0&&b>0&&c>0)
  14. cout<<"Ca 3 so deu duong";
  15. else if(a<0||b<0||c<0){
  16. cout<<"It nhat mot so am";
  17. }
  18. }
  19.  
  20. int main() {
  21. init();
  22. solve();
  23. return 0;
  24. }
  25.  
Success #stdin #stdout 0.01s 5328KB
stdin
-1
2
3
stdout
It nhat mot so am