In this code I want to print floating point value of 9/5 which is 1.8 than why it print the garbage value. why I try to print the int value than it print 1 which is correct but why it print grabage rather than printing 1.8?
#include <stdio.h>
int main() {
printf("%f", 9/5);
//printf("%d", 9/5);
return 0;
}