fork download
  1. #include <iostream>
  2. int main(){
  3. float nn[]={12.2,1.2,324.5,34.8,45.9};
  4. printf("terzo elemento=%f/h",nn[2]);
  5. printf("primo elemento=%f/h",nn[0]);
  6. printf("quinto elemento=%f/h",nn[4]);
  7. return 0;
  8. }
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
terzo elemento=324.500000/hprimo elemento=12.200000/hquinto elemento=45.900002/h