Hi all,

i was told to do up a program to emulate a calculator (+-*/ functions) but i am unable to get the program to show my answer.

attached is the program i typed. can someone help me out?

Code:#include <stdio.h> #include <stdlib.h> double Addition(double num1, double num2){ return num1+num2; } double Subtraction(double num1, double num2){ return num1-num2; } double Multiplication(double num1, double num2){ return num1*num2; } double Division(double num1, double num2){ return num1/num2; } main (int argc, char *argv[]){ char sign; double first_num, second_num; printf("Type 2 numbers and an operation\n"); scanf("%lf %c %lf", &first_num, &sign, &second_num); if (&sign == "+") printf("%f\n", Addition(first_num, second_num)); else if (&sign == "-") printf("%f\n", Subtraction(first_num, second_num)); else if (&sign == "*") printf("%f\n", Multiplication(first_num, second_num)); else if (&sign == "/") printf("%f\n", Division(first_num, second_num)); }