fork(4) download
  1. #include<stdio.h>
  2. #include <math.h>
  3.  
  4. main(){
  5. float i, j;
  6.  
  7. printf("----------------------------------------------------------------------------\n");
  8. printf("Num ");
  9. for(i=0; i<=0.9; i+=0.1){
  10. printf("%6.1f ",i);
  11. }
  12. printf("\n----------------------------------------------------------------------------\n");
  13. for(i =0; i<=9; i++){
  14. printf("%0.0f |", i);
  15. for(j=0; j<=0.9; j+=0.1){
  16. printf(" %5.2f |", sqrt(i+j));
  17. }
  18. printf("\n");
  19. }
  20. printf("----------------------------------------------------------------------------\n");
  21. }
Runtime error #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
----------------------------------------------------------------------------
Num    0.0    0.1    0.2    0.3    0.4    0.5    0.6    0.7    0.8 
----------------------------------------------------------------------------
0  |  0.00 |  0.32 |  0.45 |  0.55 |  0.63 |  0.71 |  0.77 |  0.84 |  0.89 |
1  |  1.00 |  1.05 |  1.10 |  1.14 |  1.18 |  1.22 |  1.26 |  1.30 |  1.34 |
2  |  1.41 |  1.45 |  1.48 |  1.52 |  1.55 |  1.58 |  1.61 |  1.64 |  1.67 |
3  |  1.73 |  1.76 |  1.79 |  1.82 |  1.84 |  1.87 |  1.90 |  1.92 |  1.95 |
4  |  2.00 |  2.02 |  2.05 |  2.07 |  2.10 |  2.12 |  2.14 |  2.17 |  2.19 |
5  |  2.24 |  2.26 |  2.28 |  2.30 |  2.32 |  2.35 |  2.37 |  2.39 |  2.41 |
6  |  2.45 |  2.47 |  2.49 |  2.51 |  2.53 |  2.55 |  2.57 |  2.59 |  2.61 |
7  |  2.65 |  2.66 |  2.68 |  2.70 |  2.72 |  2.74 |  2.76 |  2.77 |  2.79 |
8  |  2.83 |  2.85 |  2.86 |  2.88 |  2.90 |  2.92 |  2.93 |  2.95 |  2.97 |
9  |  3.00 |  3.02 |  3.03 |  3.05 |  3.07 |  3.08 |  3.10 |  3.11 |  3.13 |
----------------------------------------------------------------------------