Question: 5. Use Visual Studio to create a source file and type in the following code: /* program: lab 3_part2 author: firstName, lastName date: today's date

5. Use Visual Studio to create a source file and type in the following code:

/* program: lab 3_part2

author: firstName, lastName

date: today's date purpose: debugging

*/

#include int main ()

{ int a, b, ;

b = 3; float f = 10, c, d;

d = a * b; c = a / (f b);

printf (The value of d is %d and value of c is %.2f" , d, c) getch();

return 0

}

PRG 155 Programming Fundamentals Using C 3 Compile the program. Are there any errors? ______________________________________ If there are compiler errors, make appropriate changes and compile the program again. Run the program. Are there any errors/unexpected behaviors? ______________________ If there are runtime errors, make appropriate changes. Compile and run the program again. Save the program as lab3_part2.c

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!