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