fork download
  1. #include <stdio.h>
  2.  
  3. void main()
  4. {
  5. int tamanho = 6;
  6. float array[] = { 10.1, 11.2, 12.3, 127.0, 512.17, -2.5 };
  7. float inverso[tamanho];
  8.  
  9. for ( int i = 0; i < tamanho; i++ )
  10. {
  11. inverso[i] = array[tamanho - i - 1];
  12. printf( "%.2f \n", inverso[i] );
  13. }
  14. }
Runtime error #stdin #stdout 0s 2160KB
stdin
Standard input is empty
stdout
-2.50 
512.17 
127.00 
12.30 
11.20 
10.10