Tutorial_07
ICT/2022/139 R.S.R. Ranathunga 1. Write a program that subtracts the value 15 from 87 and displays the result, together with an appropriate message, at the terminal. #include <stdio.h> int main () { int a=87; int b=15; int result; result=a-b; printf("subtracts the value 15 from 87 and result is : %i\n", result); return 0; } 2. Identify the syntactic errors in the following program. Then type in and run the corrected program to ensure you have correctly identified all the mistakes. #include <stdio.h> int main (Void) ( INT sum; /* COMPUTE RESULT sum = 25 + 37 – 19 /* DISPLAY RESULTS // printf ("The answer is %i\n" sum); return 0; } corrected: #include <stdio.h> int main (void) { int sum; /* COMPUTE RESULT*/ sum = 25 + 37 - 19; /* DISPLAY RESULTS */ printf ("The answer is %i\n", sum); return 0; }...