fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a = 2;
  6. int b = 2;
  7. int suma = (a+b);
  8. if(suma>=8){
  9. printf("valor suma es: %d",suma);
  10. }
  11. else{
  12. printf("suma no tiene valor");
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0s 4516KB
stdin
Standard input is empty
stdout
suma no tiene valor