i've recently started Learning C. and after understanding the basics I started implementing what I've learnt, so I am trying to perform basic mathematical operation like add, substract etc, but the dividion operator doesn't work. every time I give it two different values the answer is 0.00000. please help me understand the error.Here is my code.
#include<stdio.h>
void main()
{
    int a,b,c,d,e;
    float f = 0;
    clrscr();
    printf("enter the values of a, b\n");
    scanf("%d %d", &a, &b);
    c = a + b;
    d = a - b;
    e = a * b;
    f = a / b;
    printf("%d\n %d\n  %d\n  %f\n", c, d, e, f);
    getch();
}
 
     
    