fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int numero1 = 6;
  6. int numero2 = 3;
  7. const char* parola = "hey";
  8. if(parola == "hey");
  9. printf("hey");
  10. if(parola == "hey");
  11. float media = (numero1 + numero2)/2.0;
  12. printf("la media è. %.2f\n",media);
  13. return 0;
  14. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
heyla media è. 4.50