Help me in solving PPSC36 problem

My issue

Printf

My code

#include <stdio.h>

int main() {
  int a = 14;
  int b = 5;
  // Update your code below this line
  printf("%f\n", a/b);
   
    
  
}

Learning course: Programming and Problem solving using C
Problem Link: https://www.codechef.com/learn/course/ciet-programming-c/CIETPC09/problems/PPSC36

correct program

#include <stdio.h>

int main() {
  int a = 14;
  int b = 5;
  // Update your code below this line
  // while printing int type data use %d
  printf("%d\n", a/b);
  // while printing int type data to float type use %f and convert the result to float 
//   printf("%f\n", (float)a/b);
   

}