Menu

(Solved) : Using Geany Write Following C Program Include Inxmain Void Int 3 B 4 E Double F 4 C D D B Q43981694 . . .

  1. Using Geany, write the following C program as is:#include <stdio.h>inxmain (void){ int a = 3; b = 4, e; Double f = 4, c, d; d = a + b; c = a / (f – b); printf (The value of d is %d”n, d) return (0);}
  2. Compile the program.
  3. This program contains syntax errors. On a piece of paper,indicate each one of them and make the appropriatecorrections.
  4. Write your answers in a text file.
  5. Try to correct the errors. Compile and build the program withall the corrections made.
  6. Once the syntax errors have been corrected, there are twoerrors that remains when you try to run it (one is called a runtimeerror because you are trying to do something illegal, the other isa logic error because you made a small mistake in the program).What are they? Tell your TA or ask for hints!
  7. Correct the errors and compile and run the program again. Whatvalue of d is displayed?

Expert Answer


Answer to Using Geany, write the following C program as is: #include inx main (void) { int a = 3; b = 4, e; Double f = 4, c, d; d…

OR