I am writing simple program where I am doing operation like 1/3, 1/5 . But while printing o/p it prints 0.00 ..
int main()
{
float res = 0.0;
int no1 =1 ;
int no2 = 3;
res = (no1) / (no2) ;
printf("Res:[%f] ",res);
}
~
ideally it should print 0.3 but it prints 0.0000.