Question: identify the four (4) errors and correct the provided source code to achieve the desired output on the command screen per the specifications provided. The
identify the four (4) errors and correct the provided source code to achieve the desired output on the command screen per the specifications provided. The program is expected to prompt the user for two integral numbers, multiply the numbers, and display the product.
/* * Assignment: Lab 2 * * Programmer:* */ #include int main(void) { int operand1, operand2; int product printf("Multiply two numbers "); printf("Enter first number "); scanf("%d", &operand1); printf("Enter second number "); scanf("%d", operand2); product = operand1 + operand2; printf("%d * %d = %d ", operand1, operand2, Product); getchar(); getchar(); return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
