x_val.c (331B)
1 /* Esercizio 5.8 */ 2 3 #include <stdio.h> 4 #include <math.h> 5 6 int main() 7 { 8 printf("%.1f\n", fabs( 7.5 )); 9 printf("%.1f\n", fabs( 0.0 )); 10 printf("%.1f\n", ceil( 0.0 )); 11 printf("%.1f\n", fabs( -6.4 )); 12 printf("%.1f\n", ceil( -6.4 )); 13 printf("%.1f\n", ceil( -fabs( -8+floor( -5.5) ) )); 14 15 return 0; 16 } /* E0F main */ 17