/* * exp_mult3.c - Assinging variables values in function arguments */ #include int main(void) { int aa, bb; // declare int aa and bb float cc; // declare float cc aa = 10; // assing some varliables bb = 33; // assing some varliables cc = 3.1459; // assing some varliables printf("The value of aa * bb is %d\n", aa * bb); // print the value of aa*bb as decimal printf("The value of bb/4 is %d\n", bb/4); // print the value of bb diviced by 4 as decimal printf("The value of cast bb/4 is %f\n", (float) bb/4 ); // cast expression to float during calculation printf("The vlaue of bb/aa is %f\n", bb/aa); // print the value of bb/aa as a float printf("The value of cast bb/aa is %f\n", (float)bb/aa); // cast expression to float during calculation // Add the following lines printf("At this point aa is %d, bb is %d, and cc is %f\n", aa, bb, cc); // print value of aa bb cc printf("The value of aa is %d\n", aa=aa*bb ); // calculate aa*bb, assign to aa, and print printf("The value of aa is %d\n", bb/4); // divide bb/aa, and print output printf("The value of cc is %f\n", cc=(float)bb/3 ); // bb divided by 3, assinged to cc as a loat and printed printf("New values are stored: aa is %d, bb is %d, and cc is %f\n", aa,bb,cc); // print the values of aa bb and cc return 0; }