Docsity

C Programming Lab 4: Simple Calculator Implementation, Exercises of Introduction to Software Engineering

Partial preview of the text

Download C Programming Lab 4: Simple Calculator Implementation and more Exercises Introduction to Software Engineering in PDF only on Docsity!

C Programming

Lab 4

Write a C program that will implement a simple calculator.

  1. Take the operation type from the user. Availabe operations are: a. Addition (+) b. Subtraction (-) c. Multiplication (*) d. Division (/) User will type +, - , * or / to select the operation.
  2. Take operands from the user
  3. Calculate and print the result. An example screen is shown below.