fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. float n1 = 1.1;
  6. float n2 = 2.3;
  7. float n3 = 4.7;
  8. float media = (n1+n2+n3)/3;
  9. printf("il risultato: รจ %f", media);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
il risultato: è 2.700000