fork download
  1. #include<stdio.h>
  2. #include<math.h>
  3. int main()
  4. { float a=10.2,b=11.5;
  5. int x,y;
  6. x=ceil(a);
  7. y=floor(b);
  8. printf("x=%d\ny=%d\n",x,y);
  9. }
  10.  
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
x=11
y=11