hi,
what is wrong with this code :
I am expecting to print 2 numbers : -1 and 0.5, but i get -1 and 0.000000. What am i doing wrongCode:#include <stdio.h> #include <stdlib.h> int main(){ int a =1; int b = 2; int c = 0; float i = 0; c= a-b; i = a/b; printf("%d,%f\n",c,i); }
thank you
baxy