fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3. void main() {
  4. float a=5;
  5. printf("%d",(int)a); // This casts to int, which will make this work
  6. printf("%.0f",a); // This displays with no decimal precision
  7. }
Runtime error #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
55