#include <stdio.h> int main(void) { int i,j; float f,g; i = 5; j = 2; f = 3.0; f = f + j / i; g = (f + j )/i; printf("value of f,g is %f,%f\n", f,g); return 0; }
5 2
value of f,g is 3.000000,1.000000
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!