Write a program to accept two numbers and mathematical operators(+ - * / ) and perform operation accordingly.
Answers
Answered by
3
Answer:
You should have the knowledge of the following topics in c programming to understand this program.
C Arithmetic operators
C Functions
C if-else statement
C switch case statement
C main() function
C printf() function
There we will perform these arithmetic operations like Addition, Subtraction, Multiplication, Division, and Modulus.
Attachments:
Answered by
7
The following codes have been written using Python.
Once the numbers have been entered, we use conditional statements to check and perform the required operation according to the operator entered. The numbers have been set as float values if ever a decimal value is to be entered. Appropriate conditions have been given for subtraction and division as well.
Equestriadash:
Thanks for the Brainliest! ^_^"
Similar questions
English,
8 days ago
Math,
8 days ago
Social Sciences,
8 days ago
Math,
17 days ago
Physics,
8 months ago