Saturday, September 14, 2013

why float is not working in C programming?

why float is not working in C programming?

in my code, the output is 2.000000 whereas it's supposed to be 2.11111
#include<stdio.h>main(){
int i,j;
float r;
i = 19;
j = 9;
r = i / j;
printf(" %f ",r);}
why it's not working?

No comments:

Post a Comment